mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-21 02:29:22 +00:00
Make PrintAsmOperand call to the superclass to handle 'n' and 'c' operand modifiers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194270 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
663fcde3d3
commit
071a4f1a66
@ -152,12 +152,8 @@ bool AArch64AsmPrinter::PrintAsmOperand(const MachineInstr *MI, unsigned OpNum,
|
||||
|
||||
switch(ExtraCode[0]) {
|
||||
default:
|
||||
break;
|
||||
case 'c': // Don't print "#" before an immediate operand.
|
||||
if (MI->getOperand(OpNum).isImm()) {
|
||||
O << MI->getOperand(OpNum).getImm();
|
||||
return false;
|
||||
}
|
||||
if (!AsmPrinter::PrintAsmOperand(MI, OpNum, AsmVariant, ExtraCode, O))
|
||||
return false;
|
||||
break;
|
||||
case 'w':
|
||||
// Output 32-bit general register operand, constant zero as wzr, or stack
|
||||
|
Loading…
Reference in New Issue
Block a user