diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-07-31 17:58:14 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-07-31 17:58:14 +0000 |
commit | 654e130b6ec76c1a2910b2594cb403ecd2773af8 (patch) | |
tree | 79a53c08a138345e3cdd13b36940d3d1cf6f5917 /llvm/test/Feature/exception.ll | |
parent | e430654fd85a04f04c93eab40ba7fe87d8657130 (diff) | |
download | bcm5719-llvm-654e130b6ec76c1a2910b2594cb403ecd2773af8.tar.gz bcm5719-llvm-654e130b6ec76c1a2910b2594cb403ecd2773af8.zip |
New EH representation for MSVC compatibility
This introduces new instructions neccessary to implement MSVC-compatible
exception handling support. Most of the middle-end and none of the
back-end haven't been audited or updated to take them into account.
Differential Revision: http://reviews.llvm.org/D11097
llvm-svn: 243766
Diffstat (limited to 'llvm/test/Feature/exception.ll')
-rw-r--r-- | llvm/test/Feature/exception.ll | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/llvm/test/Feature/exception.ll b/llvm/test/Feature/exception.ll index 7568ecfa5f7..027f9619470 100644 --- a/llvm/test/Feature/exception.ll +++ b/llvm/test/Feature/exception.ll @@ -25,3 +25,74 @@ lpad: ; preds = %entry declare void @_Z3quxv() optsize declare i32 @__gxx_personality_v0(...) + +define void @cleanupret0() personality i32 (...)* @__gxx_personality_v0 { +entry: + br label %bb +bb: + cleanuppad void [i7 4] + cleanupret i8 0 unwind label %bb +} + +define void @cleanupret1() personality i32 (...)* @__gxx_personality_v0 { +entry: + br label %bb +bb: + cleanuppad void [i7 4] + cleanupret void unwind label %bb +} + +define void @cleanupret2() personality i32 (...)* @__gxx_personality_v0 { +entry: + cleanupret i8 0 unwind to caller +} + +define void @cleanupret3() personality i32 (...)* @__gxx_personality_v0 { + cleanupret void unwind to caller +} + +define void @catchret() personality i32 (...)* @__gxx_personality_v0 { +entry: + br label %bb +bb: + catchret label %bb +} + +define i8 @catchpad() personality i32 (...)* @__gxx_personality_v0 { +entry: + br label %bb2 +bb: + ret i8 %cbv +bb2: + %cbv = catchpad i8 [i7 4] to label %bb unwind label %bb2 +} + +define void @terminatepad0() personality i32 (...)* @__gxx_personality_v0 { +entry: + br label %bb +bb: + terminatepad [i7 4] unwind label %bb +} + +define void @terminatepad1() personality i32 (...)* @__gxx_personality_v0 { +entry: + terminatepad [i7 4] unwind to caller +} + +define void @cleanuppad() personality i32 (...)* @__gxx_personality_v0 { +entry: + cleanuppad void [i7 4] + ret void +} + +define void @catchendpad0() personality i32 (...)* @__gxx_personality_v0 { +entry: + br label %bb +bb: + catchendpad unwind label %bb +} + +define void @catchendpad1() personality i32 (...)* @__gxx_personality_v0 { +entry: + catchendpad unwind to caller +} |