[Patch] Module Flags Patch

Hi!

This is a patch for module flags that I talked about here:

  http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-January/046857.html

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.

-bw

mod-flags.diff (20.4 KB)