aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-12-01 00:45:56 +0000
committerDan Gohman <gohman@apple.com>2009-12-01 00:45:56 +0000
commit261a7d983d38edd2f1ee6ff2cd0c12a2c2a8b044 (patch)
treec6feecc11d0d61b1731a0bea9150f09dd6020482 /lib/CodeGen/MachineInstr.cpp
parenta4025df42d2393da7041cd11e48a3d44b0ae2bb1 (diff)
Devang pointed out that this code should use DIScope instead of
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
Diffstat (limited to 'lib/CodeGen/MachineInstr.cpp')
-rw-r--r--lib/CodeGen/MachineInstr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp
index f11026fde7..f73a5a3621 100644
--- a/lib/CodeGen/MachineInstr.cpp
+++ b/lib/CodeGen/MachineInstr.cpp
@@ -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;
}