ARM: Use MCTargetAsmParser::validateTargetOperandClass().
authorJim Grosbach <grosbach@apple.com>
Wed, 6 Feb 2013 06:00:11 +0000 (06:00 +0000)
committerJim Grosbach <grosbach@apple.com>
Wed, 6 Feb 2013 06:00:11 +0000 (06:00 +0000)
commit5bc79cc4e833fea68f15780f191cbf4881679646
tree5526ce41129a25a34ec2e7138f3b6e482c25d4f9
parentfa05def52c6bb8266d856a9af2de6fa066d93d44
ARM: Use MCTargetAsmParser::validateTargetOperandClass().

Use the validateTargetOperandClass() hook to match literal '#0' operands in
InstAlias definitions. Previously this required per-instruction C++ munging of the
operand list, but not is handled as a natural part of the matcher. Much better.

No additional tests are required, as the pre-existing tests for these instructions
exercise the new behaviour as being functionally equivalent to the old.

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