[llvm-commits] CVS: llvm/lib/Target/SparcV8/SparcV8AsmPrinter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Dec 15 23:16:14 PST 2005
Changes in directory llvm/lib/Target/SparcV8:
SparcV8AsmPrinter.cpp updated: 1.39 -> 1.40
---
Log message:
remove some dead code
---
Diffs of the changes: (+0 -22)
SparcV8AsmPrinter.cpp | 22 ----------------------
1 files changed, 22 deletions(-)
Index: llvm/lib/Target/SparcV8/SparcV8AsmPrinter.cpp
diff -u llvm/lib/Target/SparcV8/SparcV8AsmPrinter.cpp:1.39 llvm/lib/Target/SparcV8/SparcV8AsmPrinter.cpp:1.40
--- llvm/lib/Target/SparcV8/SparcV8AsmPrinter.cpp:1.39 Fri Dec 16 01:13:26 2005
+++ llvm/lib/Target/SparcV8/SparcV8AsmPrinter.cpp Fri Dec 16 01:16:02 2005
@@ -70,7 +70,6 @@
void emitGlobalConstant(const Constant *CV);
void printConstantPool(MachineConstantPool *MCP);
void printOperand(const MachineInstr *MI, int opNum);
- void printBaseOffsetPair (const MachineInstr *MI, int i);
void printMachineInstruction(const MachineInstr *MI);
bool printInstruction(const MachineInstr *MI); // autogenerated.
bool runOnMachineFunction(MachineFunction &F);
@@ -422,27 +421,6 @@
if (CloseParen) O << ")";
}
-/// printBaseOffsetPair - Print two consecutive operands of MI, starting at #i,
-/// which form a base + offset pair (which may have brackets around it, if
-/// brackets is true, or may be in the form base - constant, if offset is a
-/// negative constant).
-///
-void SparcV8AsmPrinter::printBaseOffsetPair (const MachineInstr *MI, int i) {
- O << "[";
- printOperand (MI, i);
- if (MI->getOperand (i + 1).isImmediate()) {
- int Val = (int) MI->getOperand (i + 1).getImmedValue ();
- if (Val != 0) {
- O << ((Val >= 0) ? " + " : " - ");
- O << ((Val >= 0) ? Val : -Val);
- }
- } else {
- O << " + ";
- printOperand (MI, i + 1);
- }
- O << "]";
-}
-
/// printMachineInstruction -- Print out a single SparcV8 LLVM instruction
/// MI in GAS syntax to the current output stream.
///
More information about the llvm-commits
mailing list