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
This commit is contained in:
Anton Korobeynikov 2009-11-17 20:04:59 +00:00
parent 2a085c3493
commit bce3dbd9be

View File

@ -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 << "]";