aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM/2010-08-04-EHCrash.ll
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-11-08 00:09:27 +0000
committerStephen Hines <srhines@google.com>2011-11-14 09:11:58 -0800
commit7211872ba7cc06762fd3131d168ffb3a8bbe0b39 (patch)
treeb57d161a53d7a7adfffbce8d28a99c2c2ad38279 /test/CodeGen/ARM/2010-08-04-EHCrash.ll
parent7c1a2ac76a1bb72553419ae5911d1ee991fb3dde (diff)
downloadexternal_llvm-7211872ba7cc06762fd3131d168ffb3a8bbe0b39.zip
external_llvm-7211872ba7cc06762fd3131d168ffb3a8bbe0b39.tar.gz
external_llvm-7211872ba7cc06762fd3131d168ffb3a8bbe0b39.tar.bz2
Convert tests to the new EH model.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144048 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/2010-08-04-EHCrash.ll')
-rw-r--r--test/CodeGen/ARM/2010-08-04-EHCrash.ll12
1 files changed, 5 insertions, 7 deletions
diff --git a/test/CodeGen/ARM/2010-08-04-EHCrash.ll b/test/CodeGen/ARM/2010-08-04-EHCrash.ll
index f57b7e6..4b47085 100644
--- a/test/CodeGen/ARM/2010-08-04-EHCrash.ll
+++ b/test/CodeGen/ARM/2010-08-04-EHCrash.ll
@@ -34,10 +34,12 @@ return: ; preds = %entry
ret void
lpad: ; preds = %bb
- %eh_ptr = call i8* @llvm.eh.exception() ; <i8*> [#uses=1]
- store i8* %eh_ptr, i8** %eh_exception
+ %eh_ptr = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_sj0 to i8*)
+ cleanup
+ %exn = extractvalue { i8*, i32 } %eh_ptr, 0
+ store i8* %exn, i8** %eh_exception
%eh_ptr13 = load i8** %eh_exception ; <i8*> [#uses=1]
- %eh_select14 = call i32 (i8*, i8*, ...)* @llvm.eh.selector(i8* %eh_ptr13, i8* bitcast (i32 (...)* @__gxx_personality_sj0 to i8*), i32 1)
+ %eh_select14 = extractvalue { i8*, i32 } %eh_ptr, 1
store i32 %eh_select14, i32* %eh_selector
br label %ppad
@@ -54,10 +56,6 @@ declare arm_apcscc void @func2()
declare arm_apcscc void @_ZSt9terminatev() noreturn nounwind
-declare i8* @llvm.eh.exception() nounwind readonly
-
-declare i32 @llvm.eh.selector(i8*, i8*, ...) nounwind
-
declare arm_apcscc void @_Unwind_SjLj_Resume(i8*)
declare arm_apcscc void @func3()