summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SjLjEHPrepare.cpp
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-01-06 21:16:27 +0000
committerAndrew Trick <atrick@apple.com>2012-01-06 21:16:27 +0000
commitb937b76045d4442165009c8e6276c7c8df9efa78 (patch)
treeb643e80cfac7e27208a1cb9c4601e64360afde9d /lib/CodeGen/SjLjEHPrepare.cpp
parent6da0ef9ca408ac39ba3af76f5571756792511134 (diff)
downloadllvm-b937b76045d4442165009c8e6276c7c8df9efa78.tar.gz
llvm-b937b76045d4442165009c8e6276c7c8df9efa78.tar.bz2
llvm-b937b76045d4442165009c8e6276c7c8df9efa78.tar.xz
Tracing to help investigate issues with SjLj spill code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147682 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SjLjEHPrepare.cpp')
-rw-r--r--lib/CodeGen/SjLjEHPrepare.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/SjLjEHPrepare.cpp b/lib/CodeGen/SjLjEHPrepare.cpp
index 8e2f74f039..a23aaa0b22 100644
--- a/lib/CodeGen/SjLjEHPrepare.cpp
+++ b/lib/CodeGen/SjLjEHPrepare.cpp
@@ -350,6 +350,8 @@ void SjLjEHPass::lowerAcrossUnwindEdges(Function &F,
for (unsigned i = 0, e = Invokes.size(); i != e; ++i) {
BasicBlock *UnwindBlock = Invokes[i]->getUnwindDest();
if (UnwindBlock != BB && LiveBBs.count(UnwindBlock)) {
+ DEBUG(dbgs() << "SJLJ Spill: " << *Inst << " around "
+ << UnwindBlock->getName() << "\n");
NeedsSpill = true;
break;
}