DICompileUnit. This code now prints debug filenames successfully.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90181
91177308-0d34-0410-b5e6-
96231b3b80d8
// 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;
}