Home | History | Annotate | Download | only in ARM
      1 ; RUN: llc -mtriple=thumbv7s-apple-ios7.0 -o - %s | FileCheck %s
      2 
      3 @var = external global i32
      4 @var_hidden = external hidden global i32
      5 
      6 define i32* @get_var() {
      7   ret i32* @var
      8 }
      9 
     10 define i32* @get_var_hidden() {
     11   ret i32* @var_hidden
     12 }
     13 
     14 ; CHECK: .section __DATA,__nl_symbol_ptr,non_lazy_symbol_pointers
     15 
     16 ; CHECK: .indirect_symbol _var
     17 ; CHECK-NEXT: .long 0
     18 
     19 ; CHECK-NOT: __DATA,__data
     20 
     21 ; CHECK: .indirect_symbol _var_hidden
     22 ; CHECK-NEXT: .long 0