[llvm-commits] [llvm] r140674 - /llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp

Bill Wendling isanbard at gmail.com
Tue Sep 27 20:07:34 PDT 2011


Author: void
Date: Tue Sep 27 22:07:34 2011
New Revision: 140674

URL: http://llvm.org/viewvc/llvm-project?rev=140674&view=rev
Log:
Don't conditionalize execution of the SjLj EH prepare pass.

We may need an SjLj EH preparation pass for some call site information, at least
in the short term.

Modified:
    llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp

Modified: llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp?rev=140674&r1=140673&r2=140674&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp (original)
+++ llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp Tue Sep 27 22:07:34 2011
@@ -45,9 +45,6 @@
   bool EnableFastISel;
 }
 
-static cl::opt<bool> DisableOldSjLjEH("disable-old-sjlj-eh", cl::Hidden,
-    cl::desc("Disable the old SjLj EH preparation pass"));
-
 static cl::opt<bool> DisablePostRA("disable-post-ra", cl::Hidden,
     cl::desc("Disable Post Regalloc"));
 static cl::opt<bool> DisableBranchFold("disable-branch-fold", cl::Hidden,
@@ -325,8 +322,7 @@
     // removed from the parent invoke(s). This could happen when a landing
     // pad is shared by multiple invokes and is also a target of a normal
     // edge from elsewhere.
-    if (!DisableOldSjLjEH)
-      PM.add(createSjLjEHPass(getTargetLowering()));
+    PM.add(createSjLjEHPass(getTargetLowering()));
     // FALLTHROUGH
   case ExceptionHandling::DwarfCFI:
   case ExceptionHandling::ARM:





More information about the llvm-commits mailing list