exception.ll 792 B

123456789101112131415161718192021222324252627
  1. ; RUN: llvm-as < %s | llvm-dis > %t1.ll
  2. ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
  3. ; RUN: diff %t1.ll %t2.ll
  4. @_ZTIc = external constant i8*
  5. @_ZTId = external constant i8*
  6. @_ZTIPKc = external constant i8*
  7. define void @_Z3barv() uwtable optsize ssp personality i32 (...)* @__gxx_personality_v0 {
  8. entry:
  9. invoke void @_Z3quxv() optsize
  10. to label %try.cont unwind label %lpad
  11. try.cont: ; preds = %entry, %invoke.cont4
  12. ret void
  13. lpad: ; preds = %entry
  14. %exn = landingpad {i8*, i32}
  15. cleanup
  16. catch i8** @_ZTIc
  17. filter [2 x i8**] [i8** @_ZTIPKc, i8** @_ZTId]
  18. resume { i8*, i32 } %exn
  19. }
  20. declare void @_Z3quxv() optsize
  21. declare i32 @__gxx_personality_v0(...)