2009-09-11 18:01:28 +00:00
|
|
|
; RUN: opt < %s -inline -disable-output
|
2003-09-22 21:58:46 +00:00
|
|
|
|
2008-03-01 09:15:35 +00:00
|
|
|
define i32 @main() {
|
2003-09-22 21:58:46 +00:00
|
|
|
entry:
|
2008-03-01 09:15:35 +00:00
|
|
|
invoke void @__main( )
|
|
|
|
to label %Call2Invoke unwind label %LongJmpBlkPre
|
2003-09-22 21:58:46 +00:00
|
|
|
|
2008-03-01 09:15:35 +00:00
|
|
|
Call2Invoke: ; preds = %entry
|
2011-09-01 01:08:21 +00:00
|
|
|
br label %exit
|
2003-09-22 21:58:46 +00:00
|
|
|
|
2008-03-01 09:15:35 +00:00
|
|
|
LongJmpBlkPre: ; preds = %Call2Invoke, %entry
|
|
|
|
%i.3 = phi i32 [ 0, %entry ], [ 0, %Call2Invoke ] ; <i32> [#uses=0]
|
2011-09-01 01:08:21 +00:00
|
|
|
%exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
|
|
|
|
cleanup
|
|
|
|
br label %exit
|
|
|
|
|
|
|
|
exit:
|
2008-03-01 09:15:35 +00:00
|
|
|
ret i32 0
|
2003-09-22 21:58:46 +00:00
|
|
|
}
|
|
|
|
|
2008-03-01 09:15:35 +00:00
|
|
|
define void @__main() {
|
|
|
|
call void @__llvm_getGlobalCtors( )
|
|
|
|
call void @__llvm_getGlobalDtors( )
|
|
|
|
ret void
|
2003-09-22 21:58:46 +00:00
|
|
|
}
|
|
|
|
|
2011-09-01 01:08:21 +00:00
|
|
|
declare i32 @__gxx_personality_v0(...)
|
|
|
|
|
2008-03-01 09:15:35 +00:00
|
|
|
declare void @__llvm_getGlobalCtors()
|
|
|
|
|
|
|
|
declare void @__llvm_getGlobalDtors()
|
2003-09-22 21:58:46 +00:00
|
|
|
|