Add DEBUG messages.
authorDevang Patel <dpatel@apple.com>
Thu, 14 Jul 2011 00:03:58 +0000 (00:03 +0000)
committerDevang Patel <dpatel@apple.com>
Thu, 14 Jul 2011 00:03:58 +0000 (00:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135110 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfDebug.cpp

index 51946bae41173d5ed53a3e0cc51becbad53aeb22..f6cebb39f5738a65be52dbe9bd49b328fb83d8ae 100644 (file)
@@ -1743,6 +1743,11 @@ bool DwarfDebug::extractScopeInformation() {
         // If we have alread seen a beginning of a instruction range and
         // current instruction scope does not match scope of first instruction
         // in this range then create a new instruction range.
+        DEBUG(dbgs() << "Createing new instruction range :\n");
+        DEBUG(dbgs() << "Begin Range at " << *RangeBeginMI);
+        DEBUG(dbgs() << "End Range at " << *PrevMI);
+        DEBUG(dbgs() << "New Range starting at " << *MInsn);
+        DEBUG(dbgs() << "------------------------\n");
         DbgRange R(RangeBeginMI, PrevMI);
         MI2ScopeMap[RangeBeginMI] = getOrCreateDbgScope(PrevScope,
                                                         PrevInlinedAt);