[Linker] Change module flag linking to be more extensible.
authorDaniel Dunbar <daniel@zuster.org>
Wed, 16 Jan 2013 18:39:23 +0000 (18:39 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 16 Jan 2013 18:39:23 +0000 (18:39 +0000)
commit0ec72bbc4ddf7a64cc709d5b05001f17a8b9fa90
tree73a872b49d5e4d1587b1f25ad4458ba73751bb0d
parentb5d9d630d87263766f71bcd3c3d9000b4dff4107
[Linker] Change module flag linking to be more extensible.

 - Instead of computing a bunch of buckets of different flag types, just do an
   incremental link resolving conflicts as they arise.

 - This also has the advantage of making the link result deterministic and not
   dependent on map iteration order.

llvm-svn: 172634
llvm/lib/Linker/LinkModules.cpp
llvm/test/Linker/module-flags-1-a.ll
llvm/test/Linker/module-flags-3-a.ll
llvm/test/Linker/module-flags-7-a.ll [new file with mode: 0644]
llvm/test/Linker/module-flags-7-b.ll [new file with mode: 0644]