[PATCH] Darwin vararg parameters support in assembler macros

Janne Grunau j at jannau.net
Mon Jul 28 11:35:44 PDT 2014


Hi,

On 2014-07-28 22:26:51 +0400, llvm at dyatkovskiy.com wrote:
>
> Thanks! Sorry I had activity on another project and didn't answer.
> I also like this patch. Perhaps I missed something, but could you explain this string:
> +.make_macro .macro,.endmacro,.mybyte,.byte $0, $2, $1

That uses the .make_macro macro (which uses a vararg argument) to define 
the darwin style macro .mybyte. .mybyte has no arguments defined and 
thus uses the darwin style positional parameters $0, $1 and $2.

I think I can't update the diff in D3507 so can someone please commit my 
patch for me?

thanks

Janne



More information about the llvm-commits mailing list