mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-10 06:25:01 +00:00
Print the debug info line and column in MachineInstr::print even when there's
no filename. This situation is apparently fairly common right now. llvm-svn: 89701
This commit is contained in:
parent
76b545e988
commit
e5ed49c40d
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user