summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bitcode
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-04-05 20:51:58 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-04-05 20:51:58 +0000
commitc12813576c58dadedec2ff722c40e5ff9dd20b84 (patch)
tree4f33113ae07d68419f8b599d3fed3a8d906a0534 /llvm/test/Bitcode
parent6425696818f6789878149f711b1074cf9e09c01f (diff)
downloadbcm5719-llvm-c12813576c58dadedec2ff722c40e5ff9dd20b84.tar.gz
bcm5719-llvm-c12813576c58dadedec2ff722c40e5ff9dd20b84.zip
AsmParser: restore LLVM IR compatibility for linker_private{,_weak}
This restores the linker_private and linker_private_weak lexemes to permit translation of the deprecated lexmes. The behaviour is identical to the bitcode handling: linker_private and linker_private_weak are handled as if private had been specified. This enables compatibility with IR generated by LLVM 3.4. Reported on IRC by ki9a! llvm-svn: 205675
Diffstat (limited to 'llvm/test/Bitcode')
-rw-r--r--llvm/test/Bitcode/deprecated-linker_private-linker_private_weak.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/deprecated-linker_private-linker_private_weak.ll b/llvm/test/Bitcode/deprecated-linker_private-linker_private_weak.ll
new file mode 100644
index 00000000000..538f6419a14
--- /dev/null
+++ b/llvm/test/Bitcode/deprecated-linker_private-linker_private_weak.ll
@@ -0,0 +1,8 @@
+; RUN: llvm-as -o - %s | llvm-dis | FileCheck %s
+
+@.linker_private = linker_private unnamed_addr constant [15 x i8] c"linker_private\00", align 64
+@.linker_private_weak = linker_private_weak unnamed_addr constant [20 x i8] c"linker_private_weak\00", align 64
+
+; CHECK: @.linker_private = private unnamed_addr constant [15 x i8] c"linker_private\00", align 64
+; CHECK: @.linker_private_weak = private unnamed_addr constant [20 x i8] c"linker_private_weak\00", align 64
+
OpenPOWER on IntegriCloud