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)
commit6c6c46e4dfa9e3e16a7b40bffd90438ce5d38095
tree4867db38ea76b9573e4c10dee8ce1c3a2199f85a
parent3123eff5ebea42904ffb9297e6f0a2eb403ea03d
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

llvm-svn: 241078
llvm/lib/CodeGen/MIRParser/MILexer.cpp