summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/2007-05-05-Personality.ll
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-11-08 00:17:28 +0000
committerBill Wendling <isanbard@gmail.com>2011-11-08 00:17:28 +0000
commit8b7d76990c278d11e67e49b8b0cc5105ff602eb1 (patch)
tree864172f7533aaabe24d79a5c879aaa921431a581 /test/CodeGen/X86/2007-05-05-Personality.ll
parent30ceba32b28b84dd1f1003dff58cd87effe5a354 (diff)
Convert to the new EH model.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144049 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/2007-05-05-Personality.ll')
-rw-r--r--test/CodeGen/X86/2007-05-05-Personality.ll14
1 files changed, 5 insertions, 9 deletions
diff --git a/test/CodeGen/X86/2007-05-05-Personality.ll b/test/CodeGen/X86/2007-05-05-Personality.ll
index d1fc70d8367..7d21b71ac37 100644
--- a/test/CodeGen/X86/2007-05-05-Personality.ll
+++ b/test/CodeGen/X86/2007-05-05-Personality.ll
@@ -10,9 +10,10 @@ entry:
invoke void @raise()
to label %eh_then unwind label %unwind
-unwind: ; preds = %entry
- %eh_ptr = tail call i8* @llvm.eh.exception()
- %eh_select = tail call i32 (i8*, i8*, ...)* @llvm.eh.selector(i8* %eh_ptr, i8* bitcast (i32 (...)* @__gnat_eh_personality to i8*), i8* @error)
+unwind: ; preds = %entry
+ %eh_ptr = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gnat_eh_personality to i8*)
+ catch i8* @error
+ %eh_select = extractvalue { i8*, i32 } %eh_ptr, 1
%eh_typeid = tail call i32 @llvm.eh.typeid.for(i8* @error)
%tmp2 = icmp eq i32 %eh_select, %eh_typeid
br i1 %tmp2, label %eh_then, label %Unwind
@@ -21,16 +22,11 @@ eh_then: ; preds = %unwind, %entry
ret void
Unwind: ; preds = %unwind
- %0 = tail call i32 (...)* @_Unwind_Resume(i8* %eh_ptr)
- unreachable
+ resume { i8*, i32 } %eh_ptr
}
declare void @raise()
-declare i8* @llvm.eh.exception() nounwind readonly
-
-declare i32 @llvm.eh.selector(i8*, i8*, ...) nounwind
-
declare i32 @llvm.eh.typeid.for(i8*) nounwind
declare i32 @__gnat_eh_personality(...)