[llvm-commits] [llvm] r65189 - /llvm/branches/Apple/Dib/lib/CodeGen/MachineInstr.cpp

Bill Wendling isanbard at gmail.com
Fri Feb 20 14:32:25 PST 2009


Author: void
Date: Fri Feb 20 16:32:25 2009
New Revision: 65189

URL: http://llvm.org/viewvc/llvm-project?rev=65189&view=rev
Log:
Pull r65067 into Dib:

Print out debug info when printing the machine instruction.

Modified:
    llvm/branches/Apple/Dib/lib/CodeGen/MachineInstr.cpp

Modified: llvm/branches/Apple/Dib/lib/CodeGen/MachineInstr.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/lib/CodeGen/MachineInstr.cpp?rev=65189&r1=65188&r2=65189&view=diff

==============================================================================
--- llvm/branches/Apple/Dib/lib/CodeGen/MachineInstr.cpp (original)
+++ llvm/branches/Apple/Dib/lib/CodeGen/MachineInstr.cpp Fri Feb 20 16:32:25 2009
@@ -874,6 +874,15 @@
     }
   }
 
+  if (!debugLoc.isUnknown()) {
+    const MachineFunction *MF = getParent()->getParent();
+    DebugLocTuple DLT = MF->getDebugLocTuple(debugLoc);
+    OS << " [dbg: "
+       << DLT.Src  << ","
+       << DLT.Line << ","
+       << DLT.Col  << "]";
+  }
+
   OS << "\n";
 }
 





More information about the llvm-commits mailing list