From: Richard Barton Date: Fri, 8 Nov 2013 18:09:57 +0000 (+0000) Subject: Make PrintAsmOperand call to the superclass to handle 'n' and 'c' operand modifiers. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=071a4f1a661d5469b67a64bea90887d8fd229a8f;p=oota-llvm.git 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 --- diff --git a/lib/Target/AArch64/AArch64AsmPrinter.cpp b/lib/Target/AArch64/AArch64AsmPrinter.cpp index eb4a2abaf8a..d59ca56ba99 100644 --- a/lib/Target/AArch64/AArch64AsmPrinter.cpp +++ b/lib/Target/AArch64/AArch64AsmPrinter.cpp @@ -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