From: Duncan Sands Date: Wed, 11 Jul 2007 16:59:20 +0000 (+0000) Subject: Exception handling has been implemented. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=c3751600b7a5dee550c5e50cb83065630759467f Exception handling has been implemented. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39732 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp index 500f0e0941c..4e3982df62a 100644 --- a/lib/CodeGen/LLVMTargetMachine.cpp +++ b/lib/CodeGen/LLVMTargetMachine.cpp @@ -43,11 +43,10 @@ LLVMTargetMachine::addPassesToEmitFile(FunctionPassManager &PM, // FIXME: Implement efficient support for garbage collection intrinsics. PM.add(createLowerGCPass()); - - // FIXME: Implement the invoke/unwind instructions! + if (!ExceptionHandling) PM.add(createLowerInvokePass(getTargetLowering())); - + // Make sure that no unreachable blocks are instruction selected. PM.add(createUnreachableBlockEliminationPass());