[llvm-commits] [llvm] r65067 - /llvm/trunk/lib/CodeGen/MachineInstr.cpp

Bill Wendling isanbard at gmail.com
Thu Feb 19 13:44:56 PST 2009


Author: void
Date: Thu Feb 19 15:44:55 2009
New Revision: 65067

URL: http://llvm.org/viewvc/llvm-project?rev=65067&view=rev
Log:
Print out debug info when printing the machine instruction.

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=65067&r1=65066&r2=65067&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/MachineInstr.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineInstr.cpp Thu Feb 19 15:44:55 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