summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitbc79816f287c087b635d04d3e96a783020d58d42 (patch)
tree7044d71fbf4eee4c31334fd37d0c03b654d20880 /llvm/tools/llvm-mc/AsmParser.cpp
parent71ab2fdddde1485e97c05611f5cf284ba49b184c (diff)
downloadbcm5719-llvm-bc79816f287c087b635d04d3e96a783020d58d42.tar.gz
bcm5719-llvm-bc79816f287c087b635d04d3e96a783020d58d42.zip
Switch AsmLexer::Lex to returning a reference to the current token.
llvm-svn: 77328
Diffstat (limited to 'llvm/tools/llvm-mc/AsmParser.cpp')
-rw-r--r--llvm/tools/llvm-mc/AsmParser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-mc/AsmParser.cpp b/llvm/tools/llvm-mc/AsmParser.cpp
index 602d696ac79..e4c85a79142 100644
--- a/llvm/tools/llvm-mc/AsmParser.cpp
+++ b/llvm/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();
OpenPOWER on IntegriCloud