summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-04-29 10:06:05 +0000
committerTim Northover <tnorthover@apple.com>2014-04-29 10:06:05 +0000
commit8ea9566feeb85172f1c9120e2f3b7866304004da (patch)
treeeddc4cf64a0aab07d74bb8a1a7387a5ff692cf80 /test
parent0f79399dee6627f8dfaa19cdc642320cb2abb67d (diff)
downloadllvm-8ea9566feeb85172f1c9120e2f3b7866304004da.tar.gz
llvm-8ea9566feeb85172f1c9120e2f3b7866304004da.tar.bz2
llvm-8ea9566feeb85172f1c9120e2f3b7866304004da.tar.xz
ARM: emit hidden stubs into a proper non_lazy_symbol_pointer section.
rdar://problem/16660411 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207517 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/ARM/indirect-hidden.ll22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/indirect-hidden.ll b/test/CodeGen/ARM/indirect-hidden.ll
new file mode 100644
index 0000000000..ae1c505bb6
--- /dev/null
+++ b/test/CodeGen/ARM/indirect-hidden.ll
@@ -0,0 +1,22 @@
+; RUN: llc -mtriple=thumbv7s-apple-ios7.0 -o - %s | FileCheck %s
+
+@var = external global i32
+@var_hidden = external hidden global i32
+
+define i32* @get_var() {
+ ret i32* @var
+}
+
+define i32* @get_var_hidden() {
+ ret i32* @var_hidden
+}
+
+; CHECK: .section __DATA,__nl_symbol_ptr,non_lazy_symbol_pointers
+
+; CHECK: .indirect_symbol _var
+; CHECK-NEXT: .long 0
+
+; CHECK-NOT: __DATA,__data
+
+; CHECK: .indirect_symbol _var_hidden
+; CHECK-NEXT: .long 0 \ No newline at end of file