[ms-inline-asm] Leave alignment in bytes if the native assembler uses bytes
authorReid Kleckner <rnk@google.com>
Tue, 27 Oct 2015 17:32:48 +0000 (17:32 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 27 Oct 2015 17:32:48 +0000 (17:32 +0000)
commit851a56a34f563f0031e786f0a2bcfec774087a6f
treec4f6c841e6b922f7a0c793a89654605be9597f1e
parentb6310363b8632e28be55dc2d1f2f1258d5b25c16
[ms-inline-asm] Leave alignment in bytes if the native assembler uses bytes

The existing behavior was correct on Darwin, which is probably the
platform it was written for.

Before this change, we would rewrite "align 8" to ".align 3" and then
fail to make it through the integrated assembler because 3 is not a
power of 2.

Differential Revision: http://reviews.llvm.org/D14120

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251418 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCParser/AsmParser.cpp