forked from OSchip/llvm-project
Devang pointed out that this code should use DIScope instead of
DICompileUnit. This code now prints debug filenames successfully. llvm-svn: 90181
This commit is contained in:
parent
1d31fc9123
commit
461b937053
|
@ -1148,10 +1148,10 @@ void MachineInstr::print(raw_ostream &OS, const TargetMachine *TM) const {
|
|||
// TODO: print InlinedAtLoc information
|
||||
|
||||
DebugLocTuple DLT = MF->getDebugLocTuple(debugLoc);
|
||||
DICompileUnit CU(DLT.Scope);
|
||||
DIScope Scope(DLT.Scope);
|
||||
OS << " dbg:";
|
||||
if (!CU.isNull())
|
||||
OS << CU.getDirectory() << '/' << CU.getFilename() << ":";
|
||||
if (!Scope.isNull())
|
||||
OS << Scope.getDirectory() << ':' << Scope.getFilename() << ':';
|
||||
OS << DLT.Line << ":" << DLT.Col;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue