Coalesce some DEBUGs (moving an only-used-in-DEBUG variable's declaration into the...
authorMatt Beaumont-Gay <matthewbg@google.com>
Thu, 28 Apr 2011 22:26:05 +0000 (22:26 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Thu, 28 Apr 2011 22:26:05 +0000 (22:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130448 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/DebugInfoProbe.cpp

index 43eda47dbe1a672d6e9389844c8a6c55393a7936..d417e4bc358a6d002071c8eb432c511e1f2521c2 100644 (file)
@@ -168,12 +168,13 @@ void DebugInfoProbeImpl::finalize(Function &F) {
       DEBUG(dbgs() 
             << "DebugInfoProbe("
             << PassName
-            << "): Losing dbg info for variable: ");
-      if (MDString *MDS = dyn_cast_or_null<MDString>((*I)->getOperand(2)))
-        DEBUG(dbgs() << MDS->getString());
-      else
-        DEBUG(dbgs() << "...");
-      DEBUG(dbgs() << "\n");
+            << "): Losing dbg info for variable: ";
+            if (MDString *MDS = dyn_cast_or_null<MDString>(
+                (*I)->getOperand(2)))
+              dbgs() << MDS->getString();
+            else
+              dbgs() << "...";
+            dbgs() << "\n");
       ++NumDbgValueLost;
     }
   }