aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2007-02-22 16:22:15 +0000
committerJim Laskey <jlaskey@mac.com>2007-02-22 16:22:15 +0000
commita4e7cd947e378aa3ffe633be227138d8f859c9e3 (patch)
tree1fc1c3ff7986b0e00fb81b89448f69f8f077b550 /lib
parent7d4853896c98b8eb3d7eb4a6fea38a4dd3e0bcf3 (diff)
downloadexternal_llvm-a4e7cd947e378aa3ffe633be227138d8f859c9e3.zip
external_llvm-a4e7cd947e378aa3ffe633be227138d8f859c9e3.tar.gz
external_llvm-a4e7cd947e378aa3ffe633be227138d8f859c9e3.tar.bz2
Use exception flag.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34496 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/LLVMTargetMachine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp
index c7f50b7..d4f3645 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());