diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-04-05 20:51:58 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-04-05 20:51:58 +0000 |
commit | 48ee81c6798a415bc592255f385bdb8427b9ebcf (patch) | |
tree | 0b0ed58cad4fb22c30b73619b0e4f73b9ec321cc /test/Bitcode | |
parent | 2c5f72b629ce9e4676ed1824698e052abd4e162a (diff) | |
download | llvm-48ee81c6798a415bc592255f385bdb8427b9ebcf.tar.gz llvm-48ee81c6798a415bc592255f385bdb8427b9ebcf.tar.bz2 llvm-48ee81c6798a415bc592255f385bdb8427b9ebcf.tar.xz |
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!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205675 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Bitcode')
-rw-r--r-- | test/Bitcode/deprecated-linker_private-linker_private_weak.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Bitcode/deprecated-linker_private-linker_private_weak.ll b/test/Bitcode/deprecated-linker_private-linker_private_weak.ll new file mode 100644 index 0000000000..538f6419a1 --- /dev/null +++ b/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 + |