diff options
author | Dan Gohman <gohman@apple.com> | 2008-12-18 21:51:27 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-12-18 21:51:27 +0000 |
commit | 2ccc83966914593d98af5671ce10a3bf2dcf7513 (patch) | |
tree | 2c29f4d90a386b789c2a1ba13d90939b396a6dc9 /lib/CodeGen/MachineInstr.cpp | |
parent | af9b952627d8fa10412b8cf7319d3e334446547f (diff) |
Print subreg information in MachineInstr::dump.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61213 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | lib/CodeGen/MachineInstr.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp index 5fe1003920..2f026018fa 100644 --- a/lib/CodeGen/MachineInstr.cpp +++ b/lib/CodeGen/MachineInstr.cpp @@ -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; |