Coalesce some DEBUGs (moving an only-used-in-DEBUG variable's declaration into the DEBUG)

llvm-svn: 130448
This commit is contained in:
Matt Beaumont-Gay 2011-04-28 22:26:05 +00:00
parent cf9d1ad62e
commit c99298ab5e
1 changed files with 7 additions and 6 deletions

View 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;
}
}