This is a patch for module flags that I talked about here:
This patch creates an interface in the Module class to get and create module flags for a Module. The bulk of the patch deals with code in the Linker to merge module flags from two (or more) Modules when those Modules are linked together.
This patch doesn't have an implementation of module flags (e.g., Objective-C metadata), but is the groundwork for doing so.
Please take a look at this and let me know if you have any suggestions or concerns.
mod-flags.diff (20.4 KB)