MCParser: add a single token lookahead

Some of the more complex directive and macro handling for GAS compatibility
requires lookahead.  Add a single token lookahead in the MCAsmLexer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201058 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Saleem Abdulrasool
2014-02-09 23:29:24 +00:00
parent a4122f4746
commit 537dca94b3
3 changed files with 27 additions and 0 deletions

View File

@@ -47,6 +47,8 @@ public:
virtual StringRef LexUntilEndOfStatement();
StringRef LexUntilEndOfLine();
virtual const AsmToken peekTok(bool ShouldSkipSpace = true);
bool isAtStartOfComment(char Char);
bool isAtStatementSeparator(const char *Ptr);