From: Jim Laskey Date: Thu, 22 Feb 2007 16:22:15 +0000 (+0000) Subject: Use exception flag. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a4e7cd947e378aa3ffe633be227138d8f859c9e3;p=oota-llvm.git Use exception flag. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34496 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp index c7f50b72534..d4f3645d756 100644 --- a/lib/CodeGen/LLVMTargetMachine.cpp +++ b/lib/CodeGen/LLVMTargetMachine.cpp @@ -33,7 +33,8 @@ LLVMTargetMachine::addPassesToEmitFile(FunctionPassManager &PM, PM.add(createLowerGCPass()); // FIXME: Implement the invoke/unwind instructions! - PM.add(createLowerInvokePass(getTargetLowering())); + if (!ExceptionHandling) + PM.add(createLowerInvokePass(getTargetLowering())); // Make sure that no unreachable blocks are instruction selected. PM.add(createUnreachableBlockEliminationPass());