Update to new EH scheme.

llvm-svn: 138933
This commit is contained in:
Bill Wendling 2011-09-01 01:28:25 +00:00
parent a617c32745
commit 185d377597
4 changed files with 14 additions and 0 deletions

View File

@ -10,6 +10,9 @@ invoke_cont: ; preds = %0
ret float* %tmp.11
X: ; preds = %0
%exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
cleanup
ret float* null
}
declare i32 @__gxx_personality_v0(...)

View File

@ -23,6 +23,9 @@ cont: ; preds = %call, %entry
ret i32 %V
N: ; preds = %call
%exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
cleanup
ret i32 0
}
declare i32 @__gxx_personality_v0(...)

View File

@ -29,5 +29,9 @@ invcont37: ; preds = %invcont31
ret void
lpad: ; preds = %invcont31, %invcont, %entry
%exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
cleanup
unreachable
}
declare i32 @__gxx_personality_v0(...)

View File

@ -107,9 +107,13 @@ invoke.cont: ; preds = %entry
unreachable
try.handler: ; preds = %entry
%exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
cleanup
ret i8* null
}
declare i32 @__gxx_personality_v0(...)
; Don't turn this into "unreachable": the callee and caller don't agree in
; calling conv, but the implementation of test8a may actually end up using the
; right calling conv.