@@ -50,8 +50,7 @@ namespace {
50
50
StringRef getPassName () const override { return " Sparc Assembly Printer" ; }
51
51
52
52
void printOperand (const MachineInstr *MI, int opNum, raw_ostream &OS);
53
- void printMemOperand (const MachineInstr *MI, int opNum, raw_ostream &OS,
54
- const char *Modifier = nullptr );
53
+ void printMemOperand (const MachineInstr *MI, int opNum, raw_ostream &OS);
55
54
56
55
void emitFunctionBodyStart () override ;
57
56
void emitInstruction (const MachineInstr *MI) override ;
@@ -401,16 +400,9 @@ void SparcAsmPrinter::printOperand(const MachineInstr *MI, int opNum,
401
400
}
402
401
403
402
void SparcAsmPrinter::printMemOperand (const MachineInstr *MI, int opNum,
404
- raw_ostream &O, const char *Modifier ) {
403
+ raw_ostream &O) {
405
404
printOperand (MI, opNum, O);
406
405
407
- // If this is an ADD operand, emit it like normal operands.
408
- if (Modifier && !strcmp (Modifier, " arith" )) {
409
- O << " , " ;
410
- printOperand (MI, opNum+1 , O);
411
- return ;
412
- }
413
-
414
406
if (MI->getOperand (opNum+1 ).isReg () &&
415
407
MI->getOperand (opNum+1 ).getReg () == SP::G0)
416
408
return ; // don't print "+%g0"
0 commit comments