From a4e7cd947e378aa3ffe633be227138d8f859c9e3 Mon Sep 17 00:00:00 2001 From: Jim Laskey Date: Thu, 22 Feb 2007 16:22:15 +0000 Subject: [PATCH] Use exception flag. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34496 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/LLVMTargetMachine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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());