Print earlyclobber for implicit-defs as well.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84152 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng
2009-10-14 23:37:31 +00:00
parent 085b9c034f
commit 0789707c49

View File

@@ -212,17 +212,17 @@ void MachineOperand::print(raw_ostream &OS, const TargetMachine *TM) const {
isEarlyClobber()) { isEarlyClobber()) {
OS << '<'; OS << '<';
bool NeedComma = false; bool NeedComma = false;
if (isImplicit()) { if (isDef()) {
if (NeedComma) OS << ',';
OS << (isDef() ? "imp-def" : "imp-use");
NeedComma = true;
} else if (isDef()) {
if (NeedComma) OS << ','; if (NeedComma) OS << ',';
if (isEarlyClobber()) if (isEarlyClobber())
OS << "earlyclobber,"; OS << "earlyclobber,";
if (isImplicit())
OS << "imp-";
OS << "def"; OS << "def";
NeedComma = true; NeedComma = true;
} } else if (isImplicit())
OS << "imp-use";
if (isKill() || isDead() || isUndef()) { if (isKill() || isDead() || isUndef()) {
if (NeedComma) OS << ','; if (NeedComma) OS << ',';
if (isKill()) OS << "kill"; if (isKill()) OS << "kill";