[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)
commit1e08165ae9ee3a7b654d9030bc5c86333fe6673f
tree3d7228687acf7a63846a312083ac6c935ca46720
parent75c9b9384f50e9387f24dd7ce6af403cbda6d19a
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172634 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Linker/LinkModules.cpp
test/Linker/module-flags-1-a.ll
test/Linker/module-flags-3-a.ll
test/Linker/module-flags-7-a.ll [new file with mode: 0644]
test/Linker/module-flags-7-b.ll [new file with mode: 0644]