mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-02 23:26:31 +00:00
Convert tests to the new EH model.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144048 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -35,14 +35,14 @@ for.cond.backedge:
|
||||
br label %for.cond
|
||||
|
||||
lpad:
|
||||
%exn = tail call i8* @llvm.eh.exception() nounwind
|
||||
%eh.selector = tail call i32 (i8*, i8*, ...)* @llvm.eh.selector(i8* %exn, i8* bitcast (i32 (...)* @__gxx_personality_sj0 to i8*), i8* null) nounwind
|
||||
%exn = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_sj0 to i8*)
|
||||
catch i8* null
|
||||
invoke void @foo()
|
||||
to label %eh.resume unwind label %terminate.lpad
|
||||
|
||||
lpad26:
|
||||
%exn27 = tail call i8* @llvm.eh.exception() nounwind
|
||||
%eh.selector28 = tail call i32 (i8*, i8*, ...)* @llvm.eh.selector(i8* %exn27, i8* bitcast (i32 (...)* @__gxx_personality_sj0 to i8*), i8* null) nounwind
|
||||
%exn27 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_sj0 to i8*)
|
||||
catch i8* null
|
||||
invoke void @foo()
|
||||
to label %eh.resume unwind label %terminate.lpad
|
||||
|
||||
@@ -57,31 +57,26 @@ call8.i.i.i.noexc:
|
||||
ret void
|
||||
|
||||
lpad44:
|
||||
%exn45 = tail call i8* @llvm.eh.exception() nounwind
|
||||
%eh.selector46 = tail call i32 (i8*, i8*, ...)* @llvm.eh.selector(i8* %exn45, i8* bitcast (i32 (...)* @__gxx_personality_sj0 to i8*), i8* null) nounwind
|
||||
%exn45 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_sj0 to i8*)
|
||||
catch i8* null
|
||||
invoke void @foo()
|
||||
to label %eh.resume unwind label %terminate.lpad
|
||||
|
||||
eh.resume:
|
||||
%exn.slot.0 = phi i8* [ %exn27, %lpad26 ], [ %exn, %lpad ], [ %exn45, %lpad44 ]
|
||||
tail call void @_Unwind_SjLj_Resume_or_Rethrow(i8* %exn.slot.0) noreturn
|
||||
unreachable
|
||||
%exn.slot.0 = phi { i8*, i32 } [ %exn27, %lpad26 ], [ %exn, %lpad ], [ %exn45, %lpad44 ]
|
||||
resume { i8*, i32 } %exn.slot.0
|
||||
|
||||
terminate.lpad:
|
||||
%exn51 = tail call i8* @llvm.eh.exception() nounwind
|
||||
%eh.selector52 = tail call i32 (i8*, i8*, ...)* @llvm.eh.selector(i8* %exn51, i8* bitcast (i32 (...)* @__gxx_personality_sj0 to i8*), i8* null) nounwind
|
||||
%exn51 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_sj0 to i8*)
|
||||
catch i8* null
|
||||
tail call void @_ZSt9terminatev() noreturn nounwind
|
||||
unreachable
|
||||
}
|
||||
|
||||
declare void @foo()
|
||||
|
||||
declare i8* @llvm.eh.exception() nounwind readonly
|
||||
|
||||
declare i32 @__gxx_personality_sj0(...)
|
||||
|
||||
declare i32 @llvm.eh.selector(i8*, i8*, ...) nounwind
|
||||
|
||||
declare void @_Unwind_SjLj_Resume_or_Rethrow(i8*)
|
||||
|
||||
declare void @_ZSt9terminatev()
|
||||
|
Reference in New Issue
Block a user