diff options
author | Dan Gohman <gohman@apple.com> | 2009-11-23 21:29:08 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-11-23 21:29:08 +0000 |
commit | 75ae593a2750f9f7995980c3a03c0d972985e394 (patch) | |
tree | 60f917ea503026d864c43696a58e7e6fa55963c6 /lib/CodeGen/MachineInstr.cpp | |
parent | 77b02beb1fa3a96efc05081889d1ae4ffecb44a7 (diff) |
Print the debug info line and column in MachineInstr::print even when there's
no filename. This situation is apparently fairly common right now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89701 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | lib/CodeGen/MachineInstr.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp index b250faa62a..f11026fde7 100644 --- a/lib/CodeGen/MachineInstr.cpp +++ b/lib/CodeGen/MachineInstr.cpp @@ -1149,9 +1149,10 @@ void MachineInstr::print(raw_ostream &OS, const TargetMachine *TM) const { DebugLocTuple DLT = MF->getDebugLocTuple(debugLoc); DICompileUnit CU(DLT.Scope); + OS << " dbg:"; if (!CU.isNull()) - OS << " dbg:" << CU.getDirectory() << '/' << CU.getFilename() << ":" - << DLT.Line << ":" << DLT.Col; + OS << CU.getDirectory() << '/' << CU.getFilename() << ":"; + OS << DLT.Line << ":" << DLT.Col; } OS << "\n"; |