Print subreg information in MachineInstr::dump.

llvm-svn: 61213
This commit is contained in:
Dan Gohman 2008-12-18 21:51:27 +00:00
parent b04675d112
commit 0ab1144c79
1 changed files with 5 additions and 1 deletions

View File

@ -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;