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

Dan Gohman gohman at apple.com
Thu Dec 18 13:51:32 PST 2008


Author: djg
Date: Thu Dec 18 15:51:27 2008
New Revision: 61213

URL: http://llvm.org/viewvc/llvm-project?rev=61213&view=rev
Log:
Print subreg information in MachineInstr::dump.

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=61213&r1=61212&r2=61213&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/MachineInstr.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineInstr.cpp Thu Dec 18 15:51:27 2008
@@ -187,7 +187,11 @@
       else
         OS << "%mreg" << getReg();
     }
-      
+
+    if (getSubReg() != 0) {
+      OS << ":" << getSubReg();
+    }
+
     if (isDef() || isKill() || isDead() || isImplicit() || isEarlyClobber()) {
       OS << "<";
       bool NeedComma = false;





More information about the llvm-commits mailing list