diff options
author | Nicolas Geoffray <nicolas.geoffray@lip6.fr> | 2008-02-13 18:39:37 +0000 |
---|---|---|
committer | Nicolas Geoffray <nicolas.geoffray@lip6.fr> | 2008-02-13 18:39:37 +0000 |
commit | 21ad494f670219539de17536ec392240ba146619 (patch) | |
tree | a2b8d0d92d436e492a196dbfb7fad6ab3720df2a /llvm/lib/CodeGen/LLVMTargetMachine.cpp | |
parent | 2aea794226ccef1eafa92f6bf4ed1c9997488ed9 (diff) | |
download | bcm5719-llvm-21ad494f670219539de17536ec392240ba146619.tar.gz bcm5719-llvm-21ad494f670219539de17536ec392240ba146619.zip |
Enable exception handling int JIT
llvm-svn: 47079
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LLVMTargetMachine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp index 351554bb193..5611b03ba76 100644 --- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp +++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp @@ -186,8 +186,8 @@ bool LLVMTargetMachine::addPassesToEmitMachineCode(FunctionPassManager &PM, PM.add(createGCLoweringPass()); - // 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()); |