mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
Print out debug info when printing the machine instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65067 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
490359d687
commit
b5ef273757
@ -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
Block a user