define void @cleanupret0() personality i32 (...)* @__gxx_personality_v0 {
entry:
- cleanupret i8 0 unwind label %bb
-bb:
+ invoke void @_Z3quxv() optsize
+ to label %exit unwind label %pad
+pad:
+ %cp = cleanuppad [i7 4]
+ cleanupret %cp unwind to caller
+exit:
ret void
}
+; forward ref by name
define void @cleanupret1() personality i32 (...)* @__gxx_personality_v0 {
entry:
- cleanupret void unwind label %bb
-bb:
+ invoke void @_Z3quxv() optsize
+ to label %exit unwind label %pad
+cleanup:
+ cleanupret %cp unwind label %pad
+pad:
+ %cp = cleanuppad []
+ br label %cleanup
+exit:
ret void
}
+; forward ref by ID
define void @cleanupret2() personality i32 (...)* @__gxx_personality_v0 {
entry:
- cleanupret i8 0 unwind to caller
+ invoke void @_Z3quxv() optsize
+ to label %exit unwind label %pad
+cleanup:
+ cleanupret %0 unwind label %pad
+pad:
+ %0 = cleanuppad []
+ br label %cleanup
+exit:
+ ret void
}
-define void @cleanupret3() personality i32 (...)* @__gxx_personality_v0 {
- cleanupret void unwind to caller
+define void @catchret0() personality i32 (...)* @__gxx_personality_v0 {
+entry:
+ invoke void @_Z3quxv() optsize
+ to label %exit unwind label %pad
+pad:
+ %cp = catchpad [i7 4]
+ to label %catch unwind label %endpad
+catch:
+ catchret %cp to label %exit
+endpad:
+ catchendpad unwind to caller
+exit:
+ ret void
}
-define void @catchret() personality i32 (...)* @__gxx_personality_v0 {
+; forward ref by name
+define void @catchret1() personality i32 (...)* @__gxx_personality_v0 {
entry:
- br label %bb
-bb:
- catchret label %bb
+ invoke void @_Z3quxv() optsize
+ to label %exit unwind label %pad
+catch:
+ catchret %cp to label %exit
+pad:
+ %cp = catchpad []
+ to label %catch unwind label %endpad
+endpad:
+ catchendpad unwind to caller
+exit:
+ ret void
}
-define i8 @catchblock() personality i32 (...)* @__gxx_personality_v0 {
+; forward ref by ID
+define void @catchret2() personality i32 (...)* @__gxx_personality_v0 {
entry:
- br label %bb2
-bb:
- ret i8 %cbv
+ invoke void @_Z3quxv() optsize
+ to label %exit unwind label %pad
+catch:
+ catchret %0 to label %exit
+pad:
+ %0 = catchpad []
+ to label %catch unwind label %endpad
+endpad:
+ catchendpad unwind to caller
+exit:
+ ret void
+}
+
+define i8 @catchpad() personality i32 (...)* @__gxx_personality_v0 {
+entry:
+ invoke void @_Z3quxv() optsize
+ to label %exit unwind label %bb2
bb2:
- %cbv = catchblock i8 [i7 4] to label %bb unwind label %bb2
+ catchpad [i7 4] to label %exit unwind label %bb3
+bb3:
+ catchendpad unwind to caller
+exit:
+ ret i8 0
}
-define void @terminateblock0() personality i32 (...)* @__gxx_personality_v0 {
+define void @terminatepad0() personality i32 (...)* @__gxx_personality_v0 {
entry:
- br label %bb
+ br label %try.cont
+
+try.cont:
+ invoke void @_Z3quxv() optsize
+ to label %try.cont unwind label %bb
bb:
- terminateblock [i7 4] unwind label %bb
+ terminatepad [i7 4] unwind label %bb
}
-define void @terminateblock1() personality i32 (...)* @__gxx_personality_v0 {
+define void @terminatepad1() personality i32 (...)* @__gxx_personality_v0 {
entry:
- terminateblock [i7 4] unwind to caller
+ br label %try.cont
+
+try.cont:
+ invoke void @_Z3quxv() optsize
+ to label %try.cont unwind label %bb
+bb:
+ terminatepad [i7 4] unwind to caller
}
-define void @cleanupblock() personality i32 (...)* @__gxx_personality_v0 {
+define void @cleanuppad() personality i32 (...)* @__gxx_personality_v0 {
entry:
- cleanupblock void [i7 4]
+ br label %try.cont
+
+try.cont:
+ invoke void @_Z3quxv() optsize
+ to label %try.cont unwind label %bb
+bb:
+ cleanuppad [i7 4]
ret void
}
-define void @catchendblock0() personality i32 (...)* @__gxx_personality_v0 {
+define void @catchendpad0() personality i32 (...)* @__gxx_personality_v0 {
entry:
- br label %bb
+ br label %try.cont
+
+try.cont:
+ invoke void @_Z3quxv() optsize
+ to label %try.cont unwind label %bb
bb:
- catchendblock unwind label %bb
+ catchendpad unwind label %bb
}
-define void @catchendblock1() personality i32 (...)* @__gxx_personality_v0 {
+define void @catchendpad1() personality i32 (...)* @__gxx_personality_v0 {
entry:
- catchendblock unwind to caller
+ br label %try.cont
+
+try.cont:
+ invoke void @_Z3quxv() optsize
+ to label %try.cont unwind label %bb
+bb:
+ catchendpad unwind to caller
+}
+
+define void @cleanupendpad0() personality i32 (...)* @__gxx_personality_v0 {
+entry:
+ invoke void @_Z3quxv() optsize
+ to label %exit unwind label %pad
+pad:
+ %cp = cleanuppad [i7 4]
+ invoke void @_Z3quxv() optsize
+ to label %stop unwind label %endpad
+stop:
+ unreachable
+endpad:
+ cleanupendpad %cp unwind label %pad
+exit:
+ ret void
+}
+
+; forward ref by name
+define void @cleanupendpad1() personality i32 (...)* @__gxx_personality_v0 {
+entry:
+ invoke void @_Z3quxv() optsize
+ to label %exit unwind label %pad
+endpad:
+ cleanupendpad %cp unwind to caller
+pad:
+ %cp = cleanuppad []
+ invoke void @_Z3quxv() optsize
+ to label %stop unwind label %endpad
+stop:
+ unreachable
+exit:
+ ret void
+}
+
+; forward ref by ID
+define void @cleanupendpad2() personality i32 (...)* @__gxx_personality_v0 {
+entry:
+ invoke void @_Z3quxv() optsize
+ to label %exit unwind label %pad
+endpad:
+ cleanupendpad %0 unwind label %pad
+pad:
+ %0 = cleanuppad []
+ invoke void @_Z3quxv() optsize
+ to label %stop unwind label %endpad
+stop:
+ unreachable
+exit:
+ ret void
}