diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-09-19 20:31:14 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-09-19 20:31:14 +0000 |
commit | f0724e8e06897783595b353b71158b62f0b85729 (patch) | |
tree | f4baf1c09e13b66d68686bf76a2d5fa0c01010a3 /clang/test/CodeGenObjC/gnu-exceptions.m | |
parent | ee9ff79319574d5b4f84e87d8e23b1c15482f186 (diff) | |
download | bcm5719-llvm-f0724e8e06897783595b353b71158b62f0b85729.tar.gz bcm5719-llvm-f0724e8e06897783595b353b71158b62f0b85729.zip |
Throw the switch to convert clang to the new exception handling model!
This model uses the 'landingpad' instruction, which is pinned to the top of the
landing pad. (A landing pad is defined as the destination of the unwind branch
of an invoke instruction.) All of the information needed to generate the correct
exception handling metadata during code generation is encoded into the
landingpad instruction.
The new 'resume' instruction takes the place of the llvm.eh.resume intrinsic
call. It's lowered in much the same way as the intrinsic is.
llvm-svn: 140049
Diffstat (limited to 'clang/test/CodeGenObjC/gnu-exceptions.m')
-rw-r--r-- | clang/test/CodeGenObjC/gnu-exceptions.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/CodeGenObjC/gnu-exceptions.m b/clang/test/CodeGenObjC/gnu-exceptions.m index 7f3ae9df467..8917bf3120d 100644 --- a/clang/test/CodeGenObjC/gnu-exceptions.m +++ b/clang/test/CodeGenObjC/gnu-exceptions.m @@ -14,9 +14,9 @@ void test0() { // CHECK: call void @log(i32 1) } @catch (C *c) { - // CHECK: call i8* @llvm.eh.exception() - // CHECK: call i32 (i8*, i8*, ...)* @llvm.eh.selector({{.*}} @__gnu_objc_personality_v0 - // CHECK: br i1 + // CHECK: landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gnu_objc_personality_v0 to i8*) + // CHECK-NEXT: catch i8* getelementptr inbounds ([2 x i8]* @0, i64 0, i64 0) + // CHECK: br i1 // CHECK: call void @log(i32 0) |