aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-12-18 21:51:27 +0000
committerDan Gohman <gohman@apple.com>2008-12-18 21:51:27 +0000
commit4849d107807c40d8e94daee2f529dda1ac9b285f (patch)
tree2c29f4d90a386b789c2a1ba13d90939b396a6dc9 /lib/CodeGen/MachineInstr.cpp
parent14edb09b3c70ade8dbd86dad07fcbe9486cca534 (diff)
downloadexternal_llvm-4849d107807c40d8e94daee2f529dda1ac9b285f.zip
external_llvm-4849d107807c40d8e94daee2f529dda1ac9b285f.tar.gz
external_llvm-4849d107807c40d8e94daee2f529dda1ac9b285f.tar.bz2
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.cpp6
1 files changed, 5 insertions, 1 deletions
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 @@ 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;