[llvm-commits] [llvm] r93459 - /llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp
Jim Grosbach
grosbach at apple.com
Thu Jan 14 13:38:31 PST 2010
Author: grosbach
Date: Thu Jan 14 15:38:31 2010
New Revision: 93459
URL: http://llvm.org/viewvc/llvm-project?rev=93459&view=rev
Log:
Add comment explaining the necessity of r93456
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=93459&r1=93458&r2=93459&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp (original)
+++ llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp Thu Jan 14 15:38:31 2010
@@ -280,6 +280,11 @@
{
case ExceptionHandling::SjLj:
// SjLj piggy-backs on dwarf for this bit. The cleanups done apply to both
+ // Dwarf EH prepare needs to be run after SjLj prepare. Otherwise,
+ // catch info can get misplaced when a selector ends up more than one block
+ // 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.
PM.add(createSjLjEHPass(getTargetLowering()));
PM.add(createDwarfEHPass(getTargetLowering(), OptLevel==CodeGenOpt::None));
break;
More information about the llvm-commits
mailing list