MIR Parser: adopt the 'maybeLex...' pattern. NFC.
authorAlex Lorenz <arphaman@gmail.com>
Tue, 30 Jun 2015 16:51:29 +0000 (16:51 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Tue, 30 Jun 2015 16:51:29 +0000 (16:51 +0000)
commit1991c597a4f73bedb2d9e90d677e6a91dcb308dc
tree69108288cf8ba221270805aef591caa0acd2ed30
parent5601e30a7721dd3374e6102eb4231af0f8aa4729
MIR Parser: adopt the 'maybeLex...' pattern. NFC.

This commit refactors the machine instruction lexer so that the lexing
functions use the 'maybeLex...' pattern, where they determine if they
can lex the current token by themselves.

Reviewers: Sean Silva

Differential Revision: http://reviews.llvm.org/D10817

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241078 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MIRParser/MILexer.cpp