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 | 0ab1144c790e2693cf1afe0105eb0e3f18dd8265 (patch) | |
tree | 6ec11cb739bd5f49f8f30c3fcedd7db31a8ff1c4 /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | b04675d112983e1b45802a0a767d06d28f3753de (diff) | |
download | bcm5719-llvm-0ab1144c790e2693cf1afe0105eb0e3f18dd8265.tar.gz bcm5719-llvm-0ab1144c790e2693cf1afe0105eb0e3f18dd8265.zip |
Print subreg information in MachineInstr::dump.
llvm-svn: 61213
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index 5fe10039207..2f026018fa3 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/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; |