aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-07-04 23:24:23 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-07-04 23:24:23 +0000
commitac0a210789596a16d7a0b59ec57f875fdc0c3228 (patch)
tree77bb6524b68d044c4d1d18e87bed5616287cecc4 /llvm/lib/CodeGen/MachineInstr.cpp
parent45cc4d74a3b5d27519e43626843839c759b76324 (diff)
downloadllvm-ac0a210789596a16d7a0b59ec57f875fdc0c3228.zip
llvm-ac0a210789596a16d7a0b59ec57f875fdc0c3228.tar.gz
llvm-ac0a210789596a16d7a0b59ec57f875fdc0c3228.tar.bz2
Print symbolic subreg indices on REG_SEQUENCE and INSERT_SUBREG.
llvm-svn: 107602
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index 39ab43b..6b2e985 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/lib/CodeGen/MachineInstr.cpp
@@ -1305,6 +1305,8 @@ void MachineInstr::print(raw_ostream &OS, const TargetMachine *TM) const {
OS << "!\"" << MDS->getString() << '\"';
else
MO.print(OS, TM);
+ } else if (TM && (isInsertSubreg() || isRegSequence()) && MO.isImm()) {
+ OS << TM->getRegisterInfo()->getSubRegIndexName(MO.getImm());
} else
MO.print(OS, TM);
}