summaryrefslogtreecommitdiff
path: root/test/Linker
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-12-20 00:12:26 +0000
committerChris Lattner <sabre@nondot.org>2011-12-20 00:12:26 +0000
commitea93373a0a1bf1d087f5414e566384c2af3ebf09 (patch)
treeafc2a86539a087942520a754549a67365ec28710 /test/Linker
parent68910509fdd638727ce2f244ab7c0e4346671de1 (diff)
downloadllvm-ea93373a0a1bf1d087f5414e566384c2af3ebf09.tar.gz
llvm-ea93373a0a1bf1d087f5414e566384c2af3ebf09.tar.bz2
llvm-ea93373a0a1bf1d087f5414e566384c2af3ebf09.tar.xz
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.ll10
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 0000000000..bfc3b64361
--- /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 }