[mips] Use AsmLexer::peekTok() to resolve the conflict between $reg and $sym
authorDaniel Sanders <daniel.sanders@imgtec.com>
Tue, 1 Apr 2014 10:40:14 +0000 (10:40 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Tue, 1 Apr 2014 10:40:14 +0000 (10:40 +0000)
commit1302349706dc77288adfff2b4263c1e1942bc4b1
tree4cbb05cf91c1da5779357a773607a6f0bcf39c34
parent382fb96882f338e5b92c231f78e99e531c6c63ae
[mips] Use AsmLexer::peekTok() to resolve the conflict between $reg and $sym

Summary:
Parsing registers no longer consume the $ token before it's confirmed whether it really has a register or not, therefore it's no longer impossible to match symbols if registers were tried first.

Depends on D3232

Reviewers: matheusalmeida, vmedic

Reviewed By: matheusalmeida

Differential Revision: http://llvm-reviews.chandlerc.com/D3233

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