[llvm-commits] CVS: llvm/lib/Target/X86/Printer.cpp
Vikram Adve
vadve at cs.uiuc.edu
Mon May 26 19:04:01 PDT 2003
Changes in directory llvm/lib/Target/X86:
Printer.cpp updated: 1.34 -> 1.35
---
Log message:
Renamed opIsDef to opIsDefOnly.
---
Diffs of the changes:
Index: llvm/lib/Target/X86/Printer.cpp
diff -u llvm/lib/Target/X86/Printer.cpp:1.34 llvm/lib/Target/X86/Printer.cpp:1.35
--- llvm/lib/Target/X86/Printer.cpp:1.34 Tue Jan 14 15:59:16 2003
+++ llvm/lib/Target/X86/Printer.cpp Mon May 26 19:03:17 2003
@@ -221,7 +221,8 @@
}
} else {
unsigned i = 0;
- if (MI->getNumOperands() && MI->getOperand(0).opIsDef()) {
+ if (MI->getNumOperands() && (MI->getOperand(0).opIsDefOnly() ||
+ MI->getOperand(0).opIsDefAndUse())) {
printOp(O, MI->getOperand(0), RI);
O << " = ";
++i;
@@ -230,9 +231,11 @@
for (unsigned e = MI->getNumOperands(); i != e; ++i) {
O << " ";
- if (MI->getOperand(i).opIsDef()) O << "*";
+ if (MI->getOperand(i).opIsDefOnly() ||
+ MI->getOperand(i).opIsDefAndUse()) O << "*";
printOp(O, MI->getOperand(i), RI);
- if (MI->getOperand(i).opIsDef()) O << "*";
+ if (MI->getOperand(i).opIsDefOnly() ||
+ MI->getOperand(i).opIsDefAndUse()) O << "*";
}
}
O << "\n";
More information about the llvm-commits
mailing list