From bce3dbd9be29a42f32eb888086050cd620f2133b Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Tue, 17 Nov 2009 20:04:59 +0000 Subject: [PATCH] Both Darwin as and GNU as violate ARM docs wrt printing of addrmode6 alignment imm (in the same way). Fix asmprinting for non-darwin platforms. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89137 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp b/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp index fae44db1331..035250381b6 100644 --- a/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp +++ b/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp @@ -637,11 +637,8 @@ void ARMAsmPrinter::printAddrMode6Operand(const MachineInstr *MI, int Op) { O << "[" << getRegisterName(MO1.getReg()); if (MO4.getImm()) { - if (Subtarget->isTargetDarwin()) - O << ", :"; - else - O << " @"; - O << MO4.getImm(); + // FIXME: Both darwin as and GNU as violate ARM docs here. + O << ", :" << MO4.getImm(); } O << "]";