mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Don't print the debug directory; it's often long and uninteresting. Omit
the column number if it is not known. Handle the case of a missing filename better. llvm-svn: 90630
This commit is contained in:
parent
247374da74
commit
309e2283ab
@ -1166,9 +1166,14 @@ void MachineInstr::print(raw_ostream &OS, const TargetMachine *TM) const {
|
||||
DebugLocTuple DLT = MF->getDebugLocTuple(debugLoc);
|
||||
DIScope Scope(DLT.Scope);
|
||||
OS << " dbg:";
|
||||
// Omit the directory, since it's usually long and uninteresting.
|
||||
if (!Scope.isNull())
|
||||
OS << Scope.getDirectory() << ':' << Scope.getFilename() << ':';
|
||||
OS << DLT.Line << ":" << DLT.Col;
|
||||
OS << Scope.getFilename();
|
||||
else
|
||||
OS << "<unknown>";
|
||||
OS << ':' << DLT.Line;
|
||||
if (DLT.Col != 0)
|
||||
OS << ':' << DLT.Col;
|
||||
}
|
||||
|
||||
OS << "\n";
|
||||
|
Loading…
Reference in New Issue
Block a user