aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-11-17 20:04:59 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-11-17 20:04:59 +0000
commitbce3dbd9be29a42f32eb888086050cd620f2133b (patch)
tree7d3306d15e98357b70fe4bd394e5027aca763a5c /lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
parent2a085c34933a6c76e5a86f2680d93c16b0438801 (diff)
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
Diffstat (limited to 'lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp')
-rw-r--r--lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp b/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
index fae44db133..035250381b 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 << "]";