Factor macro argument parsing into helper methods and add support for .irp.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 15 Jun 2012 14:02:34 +0000 (14:02 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 15 Jun 2012 14:02:34 +0000 (14:02 +0000)
commitaa7a2f2ba308656e206338fe65c422e0b6781c64
tree0decf31bedfca33830c0e407a416c7610617ada8
parent6207cb519bbe9ce31eaef9a835fe6bd57dbf0d0f
Factor macro argument parsing into helper methods and add support for .irp.
Patch extracted from a larger one by the PaX team. I added the testcases
and tightened error handling a bit.

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