OSDN Git Service

[AsmParser]Emit an error if a macro has two (or more) parameters sharing the same...
authorCoby Tayree <coby.tayree@intel.com>
Sat, 8 Apr 2017 20:29:03 +0000 (20:29 +0000)
committerCoby Tayree <coby.tayree@intel.com>
Sat, 8 Apr 2017 20:29:03 +0000 (20:29 +0000)
commitb28be420c04f252b61a265e2d3c687c162cb7720
treeaf3bdc20a1aca3f8a909ef1891dfc9445d4b864c
parent0b9a8d8fd20daa0a53cbcdc688fab4ed7b3b2f77
[AsmParser]Emit an error if a macro has two (or more) parameters sharing the same name

Introducing a new error to macro parameters' parsing:
currently, llvm-mc won't complain if a macro have two (or more) named params with the same name.
this behavior is false, as there's no merit in having some params sharing a name.
now, instead of tolerate such a phenomena - emit an appropriate error.

Differential Revision: https://reviews.llvm.org/D31674

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