summaryrefslogtreecommitdiff
path: root/tools/llvm-mc/AsmParser.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-28 16:56:42 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-28 16:56:42 +0000
commita3c924f83aefd4c883ed17a200876d258e0ad1e2 (patch)
treea2ad2e40906dbbbb7bd413c54e1cb286a87da3ff /tools/llvm-mc/AsmParser.cpp
parent2d4e6d3f123f824709be4884e9e2e2f1a4579858 (diff)
downloadllvm-a3c924f83aefd4c883ed17a200876d258e0ad1e2.tar.gz
llvm-a3c924f83aefd4c883ed17a200876d258e0ad1e2.tar.bz2
llvm-a3c924f83aefd4c883ed17a200876d258e0ad1e2.tar.xz
Switch AsmLexer::Lex to returning a reference to the current token.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77328 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-mc/AsmParser.cpp')
-rw-r--r--tools/llvm-mc/AsmParser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/llvm-mc/AsmParser.cpp b/tools/llvm-mc/AsmParser.cpp
index 602d696ac7..e4c85a7914 100644
--- a/tools/llvm-mc/AsmParser.cpp
+++ b/tools/llvm-mc/AsmParser.cpp
@@ -318,7 +318,7 @@ bool AsmParser::ParseStatement() {
StringRef IDVal = ID.getString();
// Consume the identifier, see what is after it.
- switch (Lexer.Lex()) {
+ switch (Lexer.Lex().getKind()) {
case AsmToken::Colon: {
// identifier ':' -> Label.
Lexer.Lex();
@@ -609,7 +609,7 @@ bool AsmParser::ParseDirectiveSet() {
StringRef Name = Lexer.getTok().getString();
- if (Lexer.Lex() != AsmToken::Comma)
+ if (Lexer.Lex().isNot(AsmToken::Comma))
return TokError("unexpected token in '.set'");
Lexer.Lex();