commit | ac67f04f79d556001d2e3f836522ec1d5a8a1f06 | [log] [tgz] |
---|---|---|
author | Benjamin Kramer <benny.kra@googlemail.com> | Mon Aug 17 14:35:25 2015 +0000 |
committer | Benjamin Kramer <benny.kra@googlemail.com> | Mon Aug 17 14:35:25 2015 +0000 |
tree | 4f3810d346a366d3eafde56806ce65bfe4b1adf4 | |
parent | df09c6b4bf8fc234b7b6b35878dda969c0e0f1d5 [diff] |
Extend MCAsmLexer so that it can peek forward several tokens This commit adds a virtual `peekTokens()` function to `MCAsmLexer` which can peek forward an arbitrary number of tokens. It also makes the `peekTok()` method call `peekTokens()` method, but only requesting one token. The idea is to better support targets which more more ambiguous assembly syntaxes. Patch by Dylan McKay! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245221 91177308-0d34-0410-b5e6-96231b3b80d8