diff options
Diffstat (limited to 'lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | lib/CodeGen/MachineInstr.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp index d4a60bc6ae..7bb616468c 100644 --- a/lib/CodeGen/MachineInstr.cpp +++ b/lib/CodeGen/MachineInstr.cpp @@ -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"; } |