MCAsmParser: support required parameters
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 19 Feb 2014 03:00:29 +0000 (03:00 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 19 Feb 2014 03:00:29 +0000 (03:00 +0000)
commit156f2a1f5ddad573a884b52774c14e4b327d2ad0
tree6f0da2c588f6b631288f34fa4984276cf5a0e9d7
parent5bbd4d2bd4749894ed7c53bbfd040532f98c37df
MCAsmParser: support required parameters

This enhances the macro parser to parse and handle parameter qualifications,
which is needed to support required formal parameters in macro definitions.  A
required parameter may not be defaulted (though providing a default value is
accepted with a warning).  This improves GAS compatibility.

Partially addresses PR9248.

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