mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-25 17:20:48 +00:00
Replace DebugLocTuple with DILocation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93630 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1189,17 +1189,17 @@ void MachineInstr::print(raw_ostream &OS, const TargetMachine *TM) const {
|
||||
|
||||
// TODO: print InlinedAtLoc information
|
||||
|
||||
DebugLocTuple DLT = MF->getDebugLocTuple(debugLoc);
|
||||
DIScope Scope(DLT.Scope);
|
||||
DILocation DLT = MF->getDILocation(debugLoc);
|
||||
DIScope Scope = DLT.getScope();
|
||||
OS << " dbg:";
|
||||
// Omit the directory, since it's usually long and uninteresting.
|
||||
if (!Scope.isNull())
|
||||
OS << Scope.getFilename();
|
||||
else
|
||||
OS << "<unknown>";
|
||||
OS << ':' << DLT.Line;
|
||||
if (DLT.Col != 0)
|
||||
OS << ':' << DLT.Col;
|
||||
OS << ':' << DLT.getLineNumber();
|
||||
if (DLT.getColumnNumber() != 0)
|
||||
OS << ':' << DLT.getColumnNumber();
|
||||
}
|
||||
|
||||
OS << "\n";
|
||||
|
Reference in New Issue
Block a user