summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2015-05-05 17:44:16 +0000
committerReid Kleckner <reid@kleckner.net>2015-05-05 17:44:16 +0000
commit0738a9c02ef62d83791d0da8e220ead21723ea40 (patch)
treee2628543dd3636d26c795bc90235c55ab4b2a3df /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parent61b305edfd861d27726d7b0a9cdffd18d6423cdb (diff)
downloadbcm5719-llvm-0738a9c02ef62d83791d0da8e220ead21723ea40.tar.gz
bcm5719-llvm-0738a9c02ef62d83791d0da8e220ead21723ea40.zip
Re-land "[WinEH] Add an EH registration and state insertion pass for 32-bit x86"
This reverts commit r236360. This change exposed a bug in WinEHPrepare by opting win32 code into EH preparation. We already knew that WinEHPrepare has bugs, and is the status quo for x64, so I don't think that's a reason to hold off on this change. I disabled exceptions in the sanitizer tests in r236505 and an earlier revision. llvm-svn: 236508
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index d56a1808049..f385ac3c3d5 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -266,6 +266,8 @@ bool AsmPrinter::doInitialization(Module &M) {
case ExceptionHandling::WinEH:
switch (MAI->getWinEHEncodingType()) {
default: llvm_unreachable("unsupported unwinding information encoding");
+ case WinEH::EncodingType::Invalid:
+ break;
case WinEH::EncodingType::Itanium:
ES = new Win64Exception(this);
break;
OpenPOWER on IntegriCloud