From a225a19dd0739024f6a232d601c381d217483ca8 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Tue, 31 Mar 2015 22:35:44 +0000 Subject: [WinEH] Generate .xdata for catch handlers This lets us catch exceptions in simple cases. N.B. Things that do not work include (but are not limited to): - Throwing from within a catch handler. - Catching an object with a named catch parameter. - 'CatchHigh' is fictitious, we aren't sure of its purpose. - We aren't entirely efficient with regards to the number of EH states that we generate. - IP-to-State tables are sensitive to the order of emission. llvm-svn: 233767 --- llvm/lib/IR/Verifier.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'llvm/lib/IR/Verifier.cpp') diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index 15fbea33d89..1cdb99c4366 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -3228,13 +3228,6 @@ void Verifier::visitIntrinsicFunctionCall(Intrinsic::ID ID, CallInst &CI) { break; } - case Intrinsic::eh_parentframe: { - auto *AI = dyn_cast(CI.getArgOperand(0)->stripPointerCasts()); - Assert(AI && AI->isStaticAlloca(), - "llvm.eh.parentframe requires a static alloca", &CI); - break; - } - case Intrinsic::eh_unwindhelp: { auto *AI = dyn_cast(CI.getArgOperand(0)->stripPointerCasts()); Assert(AI && AI->isStaticAlloca(), -- cgit v1.2.3