Skip to content

Commit 7c22612

Browse files
committed
SPARC: Remove dead specifier code from asm operand printer
We don't currently print %specifier( ) for asm operands. The old code was also incorrect - as it did not print "(".
1 parent cf9665d commit 7c22612

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

llvm/lib/Target/Sparc/SparcAsmPrinter.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -371,11 +371,7 @@ void SparcAsmPrinter::emitFunctionBodyStart() {
371371
void SparcAsmPrinter::printOperand(const MachineInstr *MI, int opNum,
372372
raw_ostream &O) {
373373
const DataLayout &DL = getDataLayout();
374-
const MachineOperand &MO = MI->getOperand (opNum);
375-
auto TF = MO.getTargetFlags();
376-
377-
StringRef Spec = Sparc::getSpecifierName(TF);
378-
O << Spec;
374+
const MachineOperand &MO = MI->getOperand(opNum);
379375
switch (MO.getType()) {
380376
case MachineOperand::MO_Register:
381377
O << "%" << StringRef(getRegisterName(MO.getReg())).lower();
@@ -406,8 +402,6 @@ void SparcAsmPrinter::printOperand(const MachineInstr *MI, int opNum,
406402
default:
407403
llvm_unreachable("<unknown operand type>");
408404
}
409-
if (!Spec.empty())
410-
O << ")";
411405
}
412406

413407
void SparcAsmPrinter::printMemOperand(const MachineInstr *MI, int opNum,

0 commit comments

Comments
 (0)