diff options
author | Dan Gohman <gohman@apple.com> | 2009-12-01 00:45:56 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-12-01 00:45:56 +0000 |
commit | 461b9370531a5f7450a360bcddd5954db3c4482e (patch) | |
tree | 389989bfd8e013020ecdaea4495433f8407c16be /llvm/lib/CodeGen | |
parent | 1d31fc91238b28720d44e3e56071cf22fef784f3 (diff) | |
download | bcm5719-llvm-461b9370531a5f7450a360bcddd5954db3c4482e.tar.gz bcm5719-llvm-461b9370531a5f7450a360bcddd5954db3c4482e.zip |
Devang pointed out that this code should use DIScope instead of
DICompileUnit. This code now prints debug filenames successfully.
llvm-svn: 90181
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index f11026fde7a..f73a5a36211 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/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; } |