Use exception flag.

llvm-svn: 34496
This commit is contained in:
Jim Laskey 2007-02-22 16:22:15 +00:00
parent d879dfbf1c
commit 69bd45c1d2
1 changed files with 2 additions and 1 deletions

View File

@ -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());