1 ; RUN: llc -mtriple=i686-apple-macosx -o - %s | FileCheck %s
3 ; x86 doesn't normally use indirect symbols, particularly hidden ones, but it
4 ; can be tricked into it for exception-handling typeids.
6 @hidden_typeid = external hidden constant ptr
7 @normal_typeid = external constant ptr
11 define void @get_indirect_hidden() personality ptr @__gxx_personality_v0 {
12 invoke void @throws() to label %end unwind label %lpad
14 %tmp = landingpad { ptr, i32 }
15 catch ptr @hidden_typeid
22 define void @get_indirect() personality ptr @__gxx_personality_v0 {
23 invoke void @throws() to label %end unwind label %lpad
25 %tmp = landingpad { ptr, i32 }
26 catch ptr @normal_typeid
33 declare i32 @__gxx_personality_v0(...)
35 ; CHECK: .section __IMPORT,__pointers,non_lazy_symbol_pointers
37 ; CHECK-NOT: __DATA,__data
38 ; CHECK: .indirect_symbol _hidden_typeid
41 ; CHECK-NOT: __DATA,__data
42 ; CHECK: .indirect_symbol _normal_typeid