[PATCH] D17854: add .alt_entry assembly directive for Mach-O
Rafael EspĂndola via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 8 05:49:44 PST 2016
On 7 March 2016 at 21:55, Lang Hames <lhames at gmail.com> wrote:
> Hi Nick,
>
> I think Rafael had in mind that we'd write something like:
>
> _bzero:
> mov %rdx, %rsi
> mov %rsi, 0
> _memset = .
> blah
> blah
>
> Which would be more livable for people hand-writing code. I like this
> because, if workable, it'd provide a solution to http://llvm.org/PR25381 at
> the same time.
Correct. That is the exact syntax I had in mind.
Also note that the patch as it stands would introduce the mirror image
of PR25381. Given
.alt_entry _memset
_memset:
The linker would know that _memset doesn't create an atom, but MC
would think it did.
Cheers,
Rafael
More information about the llvm-commits
mailing list