summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bitcode
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2015-01-20 05:58:07 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2015-01-20 05:58:07 +0000
commit3087b22e1ae7bf00ec922a4bb9a950b27d85dd72 (patch)
treec91c2b96a09b0ae05e09635fd086a0de4058aaec /llvm/test/Bitcode
parentaa687a3d4cdc2c964fd70df7925d9a8a2e6d55fc (diff)
downloadbcm5719-llvm-3087b22e1ae7bf00ec922a4bb9a950b27d85dd72.tar.gz
bcm5719-llvm-3087b22e1ae7bf00ec922a4bb9a950b27d85dd72.zip
Bitcode: Don't create comdats when autoupgrading macho bitcode
Don't infer COMDAT groups from older bitcode if the target is macho, it doesn't have COMDATs. llvm-svn: 226546
Diffstat (limited to 'llvm/test/Bitcode')
-rw-r--r--llvm/test/Bitcode/weak-macho-3.5.ll11
-rw-r--r--llvm/test/Bitcode/weak-macho-3.5.ll.bcbin0 -> 352 bytes
2 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/weak-macho-3.5.ll b/llvm/test/Bitcode/weak-macho-3.5.ll
new file mode 100644
index 00000000000..0c09fe4cd9d
--- /dev/null
+++ b/llvm/test/Bitcode/weak-macho-3.5.ll
@@ -0,0 +1,11 @@
+; RUN: llvm-dis < %s.bc| FileCheck %s
+
+; weak-macho-3.5.ll.bc was generated by passing this file to llvm-as-3.5
+; The test checks that LLVM does not place weak GlobalVariables into Comdats for
+; macho object files, they don't support it.
+
+target triple = "x86_64-apple-macosx10.9.0"
+; CHECK: target triple = "x86_64-apple-macosx10.9.0"
+
+@x = weak global i32 0
+; CHECK: @x = weak global i32 0{{$}}
diff --git a/llvm/test/Bitcode/weak-macho-3.5.ll.bc b/llvm/test/Bitcode/weak-macho-3.5.ll.bc
new file mode 100644
index 00000000000..ee660723577
--- /dev/null
+++ b/llvm/test/Bitcode/weak-macho-3.5.ll.bc
Binary files differ
OpenPOWER on IntegriCloud