diff options
author | Richard Barton <richard.barton@arm.com> | 2013-11-08 18:09:57 +0000 |
---|---|---|
committer | Richard Barton <richard.barton@arm.com> | 2013-11-08 18:09:57 +0000 |
commit | 071a4f1a661d5469b67a64bea90887d8fd229a8f (patch) | |
tree | 2d56ebe304a2a3ba249fea66acdeca974492d4ec | |
parent | 663fcde3d33e44a9b543a692ad29873bd1ddc403 (diff) | |
download | external_llvm-071a4f1a661d5469b67a64bea90887d8fd229a8f.zip external_llvm-071a4f1a661d5469b67a64bea90887d8fd229a8f.tar.gz external_llvm-071a4f1a661d5469b67a64bea90887d8fd229a8f.tar.bz2 |
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
-rw-r--r-- | lib/Target/AArch64/AArch64AsmPrinter.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/Target/AArch64/AArch64AsmPrinter.cpp b/lib/Target/AArch64/AArch64AsmPrinter.cpp index eb4a2ab..d59ca56 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 |