projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af9b952
)
Print subreg information in MachineInstr::dump.
author
Dan Gohman
<gohman@apple.com>
Thu, 18 Dec 2008 21:51:27 +0000
(21:51 +0000)
committer
Dan Gohman
<gohman@apple.com>
Thu, 18 Dec 2008 21:51:27 +0000
(21:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61213
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/MachineInstr.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/MachineInstr.cpp
b/lib/CodeGen/MachineInstr.cpp
index 5fe100392076111ba9ce3c6800e350e6038aa7a8..2f026018fa3ddcfe316307c14cdc2deaf1380a1b 100644
(file)
--- 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;