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:
Richard Barton 2013-11-08 18:09:57 +00:00
parent 663fcde3d3
commit 071a4f1a66

View File

@ -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