Skip to content

Commit 293aa56

Browse files
authored
[Sparc] Remove dead code (NFC) (#104264)
1 parent 9088ac1 commit 293aa56

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

llvm/lib/Target/Sparc/SparcAsmPrinter.cpp

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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

403402
void 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

Comments
 (0)