diff options
author | Daniel Dunbar <daniel@zuster.org> | 2013-01-16 18:39:23 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2013-01-16 18:39:23 +0000 |
commit | 1e08165ae9ee3a7b654d9030bc5c86333fe6673f (patch) | |
tree | 3d7228687acf7a63846a312083ac6c935ca46720 /test/Linker/module-flags-7-a.ll | |
parent | 75c9b9384f50e9387f24dd7ce6af403cbda6d19a (diff) | |
download | llvm-1e08165ae9ee3a7b654d9030bc5c86333fe6673f.tar.gz llvm-1e08165ae9ee3a7b654d9030bc5c86333fe6673f.tar.bz2 llvm-1e08165ae9ee3a7b654d9030bc5c86333fe6673f.tar.xz |
[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
Diffstat (limited to 'test/Linker/module-flags-7-a.ll')
-rw-r--r-- | test/Linker/module-flags-7-a.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Linker/module-flags-7-a.ll b/test/Linker/module-flags-7-a.ll new file mode 100644 index 0000000000..976c8fecf5 --- /dev/null +++ b/test/Linker/module-flags-7-a.ll @@ -0,0 +1,9 @@ +; RUN: not llvm-link %s %p/module-flags-7-b.ll -S -o - 2>&1 | FileCheck %s + +; Test module flags error messages. + +; CHECK: linking module flags 'foo': IDs have conflicting behaviors + +!0 = metadata !{ i32 1, metadata !"foo", i32 37 } + +!llvm.module.flags = !{ !0 } |