[PATCH] MC: Better management of macro arguments

Jim Grosbach grosbach at apple.com
Tue Jan 28 10:41:27 PST 2014



================
Comment at: test/MC/AsmParser/darwin_macros.s:47
@@ -46,3 +47,1 @@
 
-.macro test5 _a
-.globl "\_a"
----------------
David Majnemer wrote:
> Rafael Ávila de Espíndola wrote:
> > Why this change? Are named arguments not supported on darwin?
> According to my own tests and the [[https://developer.apple.com/library/mac/documentation/DeveloperTools/Reference/Assembler/Assembler.pdf|Darwin Assembler documentation]], no.
I wouldn't rely on that documentation being complete, unfortunately.

Named arguments are indeed supported on Darwin. Consider, for example, test/MC/AsmParser/macro-args.s

IIRC, what's not supported is mixing and matching references to named and positional arguments within the same macro body.


http://llvm-reviews.chandlerc.com/D2634



More information about the llvm-commits mailing list