Modified the register matcher function in AsmMatcher to
authorSean Callanan <scallanan@apple.com>
Sat, 23 Jan 2010 00:40:33 +0000 (00:40 +0000)
committerSean Callanan <scallanan@apple.com>
Sat, 23 Jan 2010 00:40:33 +0000 (00:40 +0000)
commite9b466d4f09de3b46c0d0d1e71cabddc7cc9021b
tree26a471cbeb0ff7ccba02e6a91557d98d31d39479
parent2e369930dc9e36728f7953a238d63925d3660612
Modified the register matcher function in AsmMatcher to
be static.  Also made it possible for clients to get it
and no other functions from ...GenAsmMatcher.inc by
defining REGISTERS_ONLY before including GenAsmMatcher.inc.
This sets the stage for target-specific lexers that can
identify registers and return AsmToken::Register as
appropriate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94266 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/AsmParser/X86AsmParser.cpp
utils/TableGen/AsmMatcherEmitter.cpp