[llvm-commits] [llvm] r90181 - /llvm/trunk/lib/CodeGen/MachineInstr.cpp
Dan Gohman
gohman at apple.com
Mon Nov 30 16:45:56 PST 2009
Author: djg
Date: Mon Nov 30 18:45:56 2009
New Revision: 90181
URL: http://llvm.org/viewvc/llvm-project?rev=90181&view=rev
Log:
Devang pointed out that this code should use DIScope instead of
DICompileUnit. This code now prints debug filenames successfully.
Modified:
llvm/trunk/lib/CodeGen/MachineInstr.cpp
Modified: llvm/trunk/lib/CodeGen/MachineInstr.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineInstr.cpp?rev=90181&r1=90180&r2=90181&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineInstr.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineInstr.cpp Mon Nov 30 18:45:56 2009
@@ -1148,10 +1148,10 @@
// 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;
}
More information about the llvm-commits
mailing list