commit | 4849d107807c40d8e94daee2f529dda1ac9b285f | [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 | 14edb09b3c70ade8dbd86dad07fcbe9486cca534 [diff] |
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;