diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-10-14 23:37:31 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-10-14 23:37:31 +0000 |
commit | 70b1fa5a2438e323827b80175a44433d978e99ad (patch) | |
tree | 0b048c3c6f415baa8700b10e4422dd1000c91fa6 /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | ef40bd1533fd80bd6de34151cb845147d761e1a8 (diff) | |
download | bcm5719-llvm-70b1fa5a2438e323827b80175a44433d978e99ad.tar.gz bcm5719-llvm-70b1fa5a2438e323827b80175a44433d978e99ad.zip |
Print earlyclobber for implicit-defs as well.
llvm-svn: 84152
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index cbe5c7cb51e..b9d3ba78794 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -212,17 +212,17 @@ void MachineOperand::print(raw_ostream &OS, const TargetMachine *TM) const { isEarlyClobber()) { OS << '<'; bool NeedComma = false; - if (isImplicit()) { - if (NeedComma) OS << ','; - OS << (isDef() ? "imp-def" : "imp-use"); - NeedComma = true; - } else if (isDef()) { + if (isDef()) { if (NeedComma) OS << ','; if (isEarlyClobber()) OS << "earlyclobber,"; + if (isImplicit()) + OS << "imp-"; OS << "def"; NeedComma = true; - } + } else if (isImplicit()) + OS << "imp-use"; + if (isKill() || isDead() || isUndef()) { if (NeedComma) OS << ','; if (isKill()) OS << "kill"; |