mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-30 20:34:21 +00:00
ARM: remove dead InstPrinting code
This instruction form is handled by different AsmOperands now, so the code is completely dead (and wrong anyway). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219127 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7fcd5f8c89
commit
969587d62d
@ -503,30 +503,6 @@ void ARMInstPrinter::printAddrMode2OffsetOperand(const MCInst *MI,
|
||||
// Addressing Mode #3
|
||||
//===--------------------------------------------------------------------===//
|
||||
|
||||
void ARMInstPrinter::printAM3PostIndexOp(const MCInst *MI, unsigned Op,
|
||||
raw_ostream &O) {
|
||||
const MCOperand &MO1 = MI->getOperand(Op);
|
||||
const MCOperand &MO2 = MI->getOperand(Op+1);
|
||||
const MCOperand &MO3 = MI->getOperand(Op+2);
|
||||
|
||||
O << markup("<mem:") << "[";
|
||||
printRegName(O, MO1.getReg());
|
||||
O << "], " << markup(">");
|
||||
|
||||
if (MO2.getReg()) {
|
||||
O << (char)ARM_AM::getAM3Op(MO3.getImm());
|
||||
printRegName(O, MO2.getReg());
|
||||
return;
|
||||
}
|
||||
|
||||
unsigned ImmOffs = ARM_AM::getAM3Offset(MO3.getImm());
|
||||
O << markup("<imm:")
|
||||
<< '#'
|
||||
<< ARM_AM::getAddrOpcStr(ARM_AM::getAM3Op(MO3.getImm()))
|
||||
<< ImmOffs
|
||||
<< markup(">");
|
||||
}
|
||||
|
||||
void ARMInstPrinter::printAM3PreOrOffsetIndexOp(const MCInst *MI, unsigned Op,
|
||||
raw_ostream &O,
|
||||
bool AlwaysPrintImm0) {
|
||||
@ -571,10 +547,7 @@ void ARMInstPrinter::printAddrMode3Operand(const MCInst *MI, unsigned Op,
|
||||
const MCOperand &MO3 = MI->getOperand(Op+2);
|
||||
unsigned IdxMode = ARM_AM::getAM3IdxMode(MO3.getImm());
|
||||
|
||||
if (IdxMode == ARMII::IndexModePost) {
|
||||
printAM3PostIndexOp(MI, Op, O);
|
||||
return;
|
||||
}
|
||||
assert(IdxMode != ARMII::IndexModePost && "unexpected idxmode");
|
||||
printAM3PreOrOffsetIndexOp(MI, Op, O, AlwaysPrintImm0);
|
||||
}
|
||||
|
||||
|
@ -51,7 +51,6 @@ public:
|
||||
void printAddrMode3Operand(const MCInst *MI, unsigned OpNum, raw_ostream &O);
|
||||
void printAddrMode3OffsetOperand(const MCInst *MI, unsigned OpNum,
|
||||
raw_ostream &O);
|
||||
void printAM3PostIndexOp(const MCInst *MI, unsigned Op, raw_ostream &O);
|
||||
void printAM3PreOrOffsetIndexOp(const MCInst *MI, unsigned Op, raw_ostream &O,
|
||||
bool AlwaysPrintImm0);
|
||||
void printPostIdxImm8Operand(const MCInst *MI, unsigned OpNum,
|
||||
|
Loading…
x
Reference in New Issue
Block a user