This is a patch to the assembler frontend to detect when aligning a text
authorKevin Enderby <enderby@apple.com>
Thu, 25 Feb 2010 18:46:04 +0000 (18:46 +0000)
committerKevin Enderby <enderby@apple.com>
Thu, 25 Feb 2010 18:46:04 +0000 (18:46 +0000)
commitd74acb0c78c3b738ae8f313461433105fb18543b
tree23e8c2129a51448c0244e74d1e04c8b720d2837a
parent55c8a7e778173236fb55f6274019b85d0b9c7458
This is a patch to the assembler frontend to detect when aligning a text
section with TextAlignFillValue and calls EmitCodeAlignment() instead of
calling EmitValueToAlignment().  This allows x86 assembly code to be aligned
with optimal nops.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97158 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCParser/AsmParser.cpp
test/MC/MachO/Darwin/optimal_nop.s [new file with mode: 0644]