aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Barton <richard.barton@arm.com>2013-11-08 18:09:57 +0000
committerRichard Barton <richard.barton@arm.com>2013-11-08 18:09:57 +0000
commit071a4f1a661d5469b67a64bea90887d8fd229a8f (patch)
tree2d56ebe304a2a3ba249fea66acdeca974492d4ec
parent663fcde3d33e44a9b543a692ad29873bd1ddc403 (diff)
downloadexternal_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.cpp8
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