mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-31 10:34:17 +00:00
Coalesce some DEBUGs (moving an only-used-in-DEBUG variable's declaration into the DEBUG)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130448 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b0884f3f13
commit
2a2116723f
@ -168,12 +168,13 @@ void DebugInfoProbeImpl::finalize(Function &F) {
|
|||||||
DEBUG(dbgs()
|
DEBUG(dbgs()
|
||||||
<< "DebugInfoProbe("
|
<< "DebugInfoProbe("
|
||||||
<< PassName
|
<< PassName
|
||||||
<< "): Losing dbg info for variable: ");
|
<< "): Losing dbg info for variable: ";
|
||||||
if (MDString *MDS = dyn_cast_or_null<MDString>((*I)->getOperand(2)))
|
if (MDString *MDS = dyn_cast_or_null<MDString>(
|
||||||
DEBUG(dbgs() << MDS->getString());
|
(*I)->getOperand(2)))
|
||||||
|
dbgs() << MDS->getString();
|
||||||
else
|
else
|
||||||
DEBUG(dbgs() << "...");
|
dbgs() << "...";
|
||||||
DEBUG(dbgs() << "\n");
|
dbgs() << "\n");
|
||||||
++NumDbgValueLost;
|
++NumDbgValueLost;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user