Print out debug info when printing the machine instruction.

llvm-svn: 65067
This commit is contained in:
Bill Wendling 2009-02-19 21:44:55 +00:00
parent 18e1444f82
commit 1a0a3d0ff5
1 changed files with 9 additions and 0 deletions

View File

@ -874,6 +874,15 @@ void MachineInstr::print(raw_ostream &OS, const TargetMachine *TM) const {
}
}
if (!debugLoc.isUnknown()) {
const MachineFunction *MF = getParent()->getParent();
DebugLocTuple DLT = MF->getDebugLocTuple(debugLoc);
OS << " [dbg: "
<< DLT.Src << ","
<< DLT.Line << ","
<< DLT.Col << "]";
}
OS << "\n";
}