Home | History | Annotate | Download | only in Inline
      1 ; RUN: opt < %s -inline -disable-output
      2 
      3 define i32 @main() {
      4 entry:
      5         invoke void @__main( )
      6                         to label %Call2Invoke unwind label %LongJmpBlkPre
      7 
      8 Call2Invoke:            ; preds = %entry
      9         br label %exit
     10 
     11 LongJmpBlkPre:          ; preds = %Call2Invoke, %entry
     12         %i.3 = phi i32 [ 0, %entry ], [ 0, %Call2Invoke ]               ; <i32> [#uses=0]
     13         %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
     14                  cleanup
     15         br label %exit
     16 
     17 exit:
     18         ret i32 0
     19 }
     20 
     21 define void @__main() {
     22         call void @__llvm_getGlobalCtors( )
     23         call void @__llvm_getGlobalDtors( )
     24         ret void
     25 }
     26 
     27 declare i32 @__gxx_personality_v0(...)
     28 
     29 declare void @__llvm_getGlobalCtors()
     30 
     31 declare void @__llvm_getGlobalDtors()
     32 
     33