llvm.org GIT mirror llvm / 20fb487
Add a test showing how the Leh_func_endN symbol is used. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148161 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 8 years ago
1 changed file(s) with 27 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llc -mtriple x86_64-apple-darwin %s -o - | FileCheck %s
1 @_ZTIi = external constant i8*
2
3 define i32 @main() uwtable optsize ssp {
4 entry:
5 invoke void @_Z1fv() optsize
6 to label %try.cont unwind label %lpad
7
8 lpad:
9 %0 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
10 catch i8* bitcast (i8** @_ZTIi to i8*)
11 br label %eh.resume
12
13 try.cont:
14 ret i32 0
15
16 eh.resume:
17 resume { i8*, i32 } %0
18 }
19
20 declare void @_Z1fv() optsize
21
22 declare i32 @__gxx_personality_v0(...)
23
24 ; CHECK: Leh_func_end0:
25 ; CHECK: GCC_except_table0
26 ; CHECK: = Leh_func_end0-