Use exception flag.
authorJim Laskey <jlaskey@mac.com>
Thu, 22 Feb 2007 16:22:15 +0000 (16:22 +0000)
committerJim Laskey <jlaskey@mac.com>
Thu, 22 Feb 2007 16:22:15 +0000 (16:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34496 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/LLVMTargetMachine.cpp

index c7f50b72534d186e2b3eb6e84d9fa329206a541f..d4f3645d7569d11bd4a89b7c19951e3e611c85de 100644 (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());