diff options
author | Chris Lattner <sabre@nondot.org> | 2011-12-20 00:12:26 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-12-20 00:12:26 +0000 |
commit | ea93373a0a1bf1d087f5414e566384c2af3ebf09 (patch) | |
tree | afc2a86539a087942520a754549a67365ec28710 /test/Linker | |
parent | 68910509fdd638727ce2f244ab7c0e4346671de1 (diff) | |
download | external_llvm-ea93373a0a1bf1d087f5414e566384c2af3ebf09.zip external_llvm-ea93373a0a1bf1d087f5414e566384c2af3ebf09.tar.gz external_llvm-ea93373a0a1bf1d087f5414e566384c2af3ebf09.tar.bz2 |
Now that PR11464 is fixed, reapply the patch to fix PR11464,
merging types by name when we can. We still don't guarantee type name linkage
but we do it when obviously the right thing to do. This makes LTO type names
easier to read, for example.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146932 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Linker')
-rw-r--r-- | test/Linker/link-type-names.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Linker/link-type-names.ll b/test/Linker/link-type-names.ll new file mode 100644 index 0000000..bfc3b64 --- /dev/null +++ b/test/Linker/link-type-names.ll @@ -0,0 +1,10 @@ +; RUN: echo "%X = type { i32 } @G2 = global %X { i32 4 }" > %t.ll +; RUN: llvm-link %s %t.ll -S | FileCheck %s +; PR11464 + +%X = type { i32 } +@G = global %X { i32 4 } + + +; CHECK: @G = global %X { i32 4 } +; CHECK: @G2 = global %X { i32 4 } |