diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-12-16 07:16:02 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-12-16 07:16:02 +0000 |
| commit | e082426ae725b35fa64ad6730687ee9ebece8dff (patch) | |
| tree | 281f30e20b467c7092e0334a9c598c5dd30c4ce0 | |
| parent | 70310906e75798272d8facf58acd612a84d0c0eb (diff) | |
| download | bcm5719-llvm-e082426ae725b35fa64ad6730687ee9ebece8dff.tar.gz bcm5719-llvm-e082426ae725b35fa64ad6730687ee9ebece8dff.zip | |
remove some dead code
llvm-svn: 24743
| -rw-r--r-- | llvm/lib/Target/SparcV8/SparcV8AsmPrinter.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/llvm/lib/Target/SparcV8/SparcV8AsmPrinter.cpp b/llvm/lib/Target/SparcV8/SparcV8AsmPrinter.cpp index cd66c193845..c983d5f8941 100644 --- a/llvm/lib/Target/SparcV8/SparcV8AsmPrinter.cpp +++ b/llvm/lib/Target/SparcV8/SparcV8AsmPrinter.cpp @@ -70,7 +70,6 @@ namespace { 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 @@ void SparcV8AsmPrinter::printOperand(const MachineInstr *MI, int opNum) { 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. /// |

