Tracing to help investigate issues with SjLj spill code.
[oota-llvm.git] / lib / CodeGen / SjLjEHPrepare.cpp
index 8e2f74f039299e7294ca87362257af1b7d81be23..a23aaa0b22d529c03452051bdfe68fa75eb57687 100644 (file)
@@ -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;
         }