forked from OSchip/llvm-project
Print out debug info when printing the machine instruction.
llvm-svn: 65067
This commit is contained in:
parent
18e1444f82
commit
1a0a3d0ff5
|
@ -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";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue