commit | 2ccc83966914593d98af5671ce10a3bf2dcf7513 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Thu Dec 18 21:51:27 2008 +0000 |
committer | Dan Gohman <gohman@apple.com> | Thu Dec 18 21:51:27 2008 +0000 |
tree | 2c29f4d90a386b789c2a1ba13d90939b396a6dc9 | |
parent | af9b952627d8fa10412b8cf7319d3e334446547f [diff] [blame] |
Print subreg information in MachineInstr::dump. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61213 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp index 5fe1003..2f02601 100644 --- a/lib/CodeGen/MachineInstr.cpp +++ b/lib/CodeGen/MachineInstr.cpp
@@ -187,7 +187,11 @@ else OS << "%mreg" << getReg(); } - + + if (getSubReg() != 0) { + OS << ":" << getSubReg(); + } + if (isDef() || isKill() || isDead() || isImplicit() || isEarlyClobber()) { OS << "<"; bool NeedComma = false;