diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-01-14 21:38:31 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-01-14 21:38:31 +0000 |
commit | 9ae81816bc09cd935d6b26214d9716a93a37b657 (patch) | |
tree | fda0a7505d2d9c5212e74f73465b610cd71ac43e /llvm/lib | |
parent | 485810ec0ac2562558ac3e3b7debcb3858fa3dbe (diff) | |
download | bcm5719-llvm-9ae81816bc09cd935d6b26214d9716a93a37b657.tar.gz bcm5719-llvm-9ae81816bc09cd935d6b26214d9716a93a37b657.zip |
Add comment explaining the necessity of r93456
llvm-svn: 93459
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/LLVMTargetMachine.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp index 8ea6dba5192..2b5fd2c9490 100644 --- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp +++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp @@ -280,6 +280,11 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM, { 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; |