Added another bit of the ARM target assembler to llvm-mc to parse register
authorKevin Enderby <enderby@apple.com>
Fri, 9 Oct 2009 21:12:28 +0000 (21:12 +0000)
committerKevin Enderby <enderby@apple.com>
Fri, 9 Oct 2009 21:12:28 +0000 (21:12 +0000)
commitd7894f105a3c397a3d7f5c5136eee39f5865e64b
tree957c9cd45f0d206aefadbe8ea50932e9e12358e8
parent599a87aca0194edb46f0bee141c3de8281bf22b9
Added another bit of the ARM target assembler to llvm-mc to parse register
lists.  Changed ARMAsmParser::MatchRegisterName to return -1 instead of 0 on
errors so 0-15 values could be returned as register numbers.  Also added the
rest of the arm register names to the currently hacked up version to allow more
testing.  Some changes to ARMAsmParser::ParseOperand to give different errors
for things not yet supported and some additions to the hacked
ARMAsmParser::MatchInstruction to allow more testing for now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83673 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/AsmParser/ARMAsmParser.cpp