diff options
author | Reid Kleckner <rnk@google.com> | 2015-09-16 22:14:46 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2015-09-16 22:14:46 +0000 |
commit | 813f1b65bc131b211ec5fef10ad47abc0488192d (patch) | |
tree | 50945af80e2c6413233a92517adee7ef46a14ba0 /llvm/test/CodeGen/WinEH/cppeh-prepared-catch-all.ll | |
parent | e39bd407ba29cf8ba20ec4f02f6a84b17cee2cb3 (diff) | |
download | bcm5719-llvm-813f1b65bc131b211ec5fef10ad47abc0488192d.tar.gz bcm5719-llvm-813f1b65bc131b211ec5fef10ad47abc0488192d.zip |
[WinEH] Rip out the landingpad-based C++ EH state numbering code
It never really worked, and the new code is working better every day.
llvm-svn: 247860
Diffstat (limited to 'llvm/test/CodeGen/WinEH/cppeh-prepared-catch-all.ll')
-rw-r--r-- | llvm/test/CodeGen/WinEH/cppeh-prepared-catch-all.ll | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/llvm/test/CodeGen/WinEH/cppeh-prepared-catch-all.ll b/llvm/test/CodeGen/WinEH/cppeh-prepared-catch-all.ll deleted file mode 100644 index 31b5e58562b..00000000000 --- a/llvm/test/CodeGen/WinEH/cppeh-prepared-catch-all.ll +++ /dev/null @@ -1,47 +0,0 @@ -; RUN: llc < %s | FileCheck %s - -target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128" -target triple = "x86_64-pc-windows-msvc" - -; This test case is equivalent to: -; extern "C" void may_throw(); -; extern "C" void test_catch_all() { -; try { -; may_throw(); -; } catch (...) { -; } -; } - -declare void @may_throw() #1 -declare i32 @__CxxFrameHandler3(...) -declare void @llvm.eh.begincatch(i8* nocapture, i8* nocapture) #2 -declare void @llvm.eh.endcatch() #2 - -; Function Attrs: nounwind uwtable -define void @test_catch_all() #0 personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*) { -entry: - invoke void @may_throw() - to label %try.cont unwind label %lpad - -lpad: ; preds = %entry - %0 = landingpad { i8*, i32 } - catch i8* null - %1 = extractvalue { i8*, i32 } %0, 0 - tail call void @llvm.eh.begincatch(i8* %1, i8* null) #2 - tail call void @llvm.eh.endcatch() #2 - br label %try.cont - -try.cont: ; preds = %entry, %lpad - ret void -} - -; CHECK-LABEL: $handlerMap$0$test_catch_all: -; CHECK: .long {{[0-9]+}} -; CHECK: .long 0 -; CHECK: .long 0 -; CHECK: .long test_catch_all.catch@IMGREL -; CHECK: .long .Ltest_catch_all.catch$parent_frame_offset - -attributes #0 = { nounwind uwtable "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "unsafe-fp-math"="false" "use-soft-float"="false" } -attributes #1 = { "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "unsafe-fp-math"="false" "use-soft-float"="false" } -attributes #2 = { nounwind } |