@@ -50,8 +50,7 @@ namespace {
5050 StringRef getPassName () const override { return " Sparc Assembly Printer" ; }
5151
5252 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);
5554
5655 void emitFunctionBodyStart () override ;
5756 void emitInstruction (const MachineInstr *MI) override ;
@@ -401,16 +400,9 @@ void SparcAsmPrinter::printOperand(const MachineInstr *MI, int opNum,
401400}
402401
403402void SparcAsmPrinter::printMemOperand (const MachineInstr *MI, int opNum,
404- raw_ostream &O, const char *Modifier ) {
403+ raw_ostream &O) {
405404 printOperand (MI, opNum, O);
406405
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-
414406 if (MI->getOperand (opNum+1 ).isReg () &&
415407 MI->getOperand (opNum+1 ).getReg () == SP::G0)
416408 return ; // don't print "+%g0"
0 commit comments