diff options
author | Jim Laskey <jlaskey@mac.com> | 2007-02-22 16:22:15 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2007-02-22 16:22:15 +0000 |
commit | 69bd45c1d2f29eb609e34343672bc1f46ef1ff5c (patch) | |
tree | ddfdbc84fd2cd3294f45346b4faebc68ec8c804c /llvm/lib/CodeGen | |
parent | d879dfbf1c9796dac653038c199900df3c28b724 (diff) | |
download | bcm5719-llvm-69bd45c1d2f29eb609e34343672bc1f46ef1ff5c.tar.gz bcm5719-llvm-69bd45c1d2f29eb609e34343672bc1f46ef1ff5c.zip |
Use exception flag.
llvm-svn: 34496
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/LLVMTargetMachine.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp index c7f50b72534..d4f3645d756 100644 --- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp +++ b/llvm/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()); |