Home | History | Annotate | Download | only in Inline
      1 ; RUN: opt < %s -inline -disable-output
      2 
      3 define i32 @main() personality i32 (...)* @__gxx_personality_v0 {
      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 ]
     13         %exn = landingpad {i8*, i32}
     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