diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-11-08 00:23:01 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-11-08 00:23:01 +0000 |
commit | 0d690977791a76af79c2fc3d7b794d5537831545 (patch) | |
tree | ec6bd51c0cfcc2d283a9799e79f5c02026f1da16 /test/Transforms/MergeFunc | |
parent | 8b7d76990c278d11e67e49b8b0cc5105ff602eb1 (diff) | |
download | llvm-0d690977791a76af79c2fc3d7b794d5537831545.tar.gz llvm-0d690977791a76af79c2fc3d7b794d5537831545.tar.bz2 llvm-0d690977791a76af79c2fc3d7b794d5537831545.tar.xz |
Convert to the new EH model.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144050 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/MergeFunc')
-rw-r--r-- | test/Transforms/MergeFunc/2011-02-08-RemoveEqual.ll | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/Transforms/MergeFunc/2011-02-08-RemoveEqual.ll b/test/Transforms/MergeFunc/2011-02-08-RemoveEqual.ll index 201903e995..e3e52b401a 100644 --- a/test/Transforms/MergeFunc/2011-02-08-RemoveEqual.ll +++ b/test/Transforms/MergeFunc/2011-02-08-RemoveEqual.ll @@ -75,10 +75,12 @@ bb2: ; preds = %bb1, %invcont ret void lpad: ; preds = %bb - %eh_ptr = call i8* @llvm.eh.exception() - store i8* %eh_ptr, i8** %eh_exception + %eh_ptr = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) + cleanup + %exn = extractvalue { i8*, i32 } %eh_ptr, 0 + store i8* %exn, i8** %eh_exception %eh_ptr4 = load i8** %eh_exception - %eh_select5 = call i32 (i8*, i8*, ...)* @llvm.eh.selector(i8* %eh_ptr4, i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*), i32 0) + %eh_select5 = extractvalue { i8*, i32 } %eh_ptr, 1 store i32 %eh_select5, i32* %eh_selector %eh_select = load i32* %eh_selector store i32 %eh_select, i32* %save_filt.150, align 4 @@ -199,10 +201,12 @@ bb2: ; preds = %bb1, %invcont ret void lpad: ; preds = %bb - %eh_ptr = call i8* @llvm.eh.exception() - store i8* %eh_ptr, i8** %eh_exception + %eh_ptr = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) + cleanup + %exn = extractvalue { i8*, i32 } %eh_ptr, 0 + store i8* %exn, i8** %eh_exception %eh_ptr4 = load i8** %eh_exception - %eh_select5 = call i32 (i8*, i8*, ...)* @llvm.eh.selector(i8* %eh_ptr4, i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*), i32 0) + %eh_select5 = extractvalue { i8*, i32 } %eh_ptr, 1 store i32 %eh_select5, i32* %eh_selector %eh_select = load i32* %eh_selector store i32 %eh_select, i32* %save_filt.148, align 4 @@ -220,10 +224,6 @@ lpad: ; preds = %bb unreachable } -declare i8* @llvm.eh.exception() nounwind readonly - -declare i32 @llvm.eh.selector(i8*, i8*, ...) nounwind - declare i32 @__gxx_personality_v0(...) declare void @_Unwind_Resume_or_Rethrow() |