Print subreg information in MachineInstr::dump.
authorDan Gohman <gohman@apple.com>
Thu, 18 Dec 2008 21:51:27 +0000 (21:51 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 18 Dec 2008 21:51:27 +0000 (21:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61213 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineInstr.cpp

index 5fe100392076111ba9ce3c6800e350e6038aa7a8..2f026018fa3ddcfe316307c14cdc2deaf1380a1b 100644 (file)
@@ -187,7 +187,11 @@ void MachineOperand::print(raw_ostream &OS, const TargetMachine *TM) const {
       else
         OS << "%mreg" << getReg();
     }
-      
+
+    if (getSubReg() != 0) {
+      OS << ":" << getSubReg();
+    }
+
     if (isDef() || isKill() || isDead() || isImplicit() || isEarlyClobber()) {
       OS << "<";
       bool NeedComma = false;