Keep empty assembly macro argument values in the middle of the list.
authorJim Grosbach <grosbach@apple.com>
Mon, 30 Jul 2012 22:44:17 +0000 (22:44 +0000)
committerJim Grosbach <grosbach@apple.com>
Mon, 30 Jul 2012 22:44:17 +0000 (22:44 +0000)
commit9714644a38213d059f3ddced08cfc119ca8a0ab7
tree8c2ae1939ffac03ce89d84f8da72415a1ad4a2e2
parentba1f580f338e12c47a600050f7a77fae579acf93
Keep empty assembly macro argument values in the middle of the list.

Empty macro arguments at the end of the list should be as-if not specified at
all, but those in the middle of the list need to be kept so as not to screw
up the positional numbering. E.g.:
.macro foo
foo_-bash___:
  nop
.endm

foo 1, 2, 3, 4
foo 1, , 3, 4

Should create two labels, "foo_1_2_3_4" and "foo_1__3_4".

rdar://11948769

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