Make PrintAsmOperand call to the superclass to handle 'n' and 'c' operand modifiers.
authorRichard Barton <richard.barton@arm.com>
Fri, 8 Nov 2013 18:09:57 +0000 (18:09 +0000)
committerRichard Barton <richard.barton@arm.com>
Fri, 8 Nov 2013 18:09:57 +0000 (18:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194270 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AArch64/AArch64AsmPrinter.cpp

index eb4a2abaf8a2f6e8c0a5ec6bd1b01f552a59f533..d59ca56ba9989b9b8133fb3355be4e4f1c6d34c9 100644 (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