mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-10 02:38:50 +00:00
Beautify debug info probe output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130435 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5d86759e0f
commit
77562c74e5
@ -136,7 +136,9 @@ void DebugInfoProbeImpl::finalize(Function &F) {
|
||||
unsigned LineNo = *I;
|
||||
if (LineNos2.count(LineNo) == 0) {
|
||||
DEBUG(dbgs()
|
||||
<< "DebugInfoProbe: Losing dbg info for source line "
|
||||
<< "DebugInfoProbe("
|
||||
<< PassName
|
||||
<< "): Losing dbg info for source line "
|
||||
<< LineNo << "\n");
|
||||
++NumDbgLineLost;
|
||||
}
|
||||
@ -162,9 +164,16 @@ void DebugInfoProbeImpl::finalize(Function &F) {
|
||||
|
||||
for (std::set<MDNode *>::iterator I = DbgVariables.begin(),
|
||||
E = DbgVariables.end(); I != E; ++I) {
|
||||
if (DbgVariables2.count(*I) == 0) {
|
||||
DEBUG(dbgs() << "DebugInfoProbe: Losing dbg info for variable: ");
|
||||
DEBUG((*I)->print(dbgs()));
|
||||
if (DbgVariables2.count(*I) == 0 && (*I)->getNumOperands() >= 2) {
|
||||
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");
|
||||
++NumDbgValueLost;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user