[llvm-commits] [llvm] r107136 - /llvm/trunk/lib/MC/MCParser/AsmParser.cpp
Duncan Sands
baldrick at free.fr
Tue Jun 29 06:24:40 PDT 2010
Author: baldrick
Date: Tue Jun 29 08:24:40 2010
New Revision: 107136
URL: http://llvm.org/viewvc/llvm-project?rev=107136&view=rev
Log:
Remove unused calls to Lexer.getLoc and the pointless variable HasFillExpr.
Modified:
llvm/trunk/lib/MC/MCParser/AsmParser.cpp
Modified: llvm/trunk/lib/MC/MCParser/AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCParser/AsmParser.cpp?rev=107136&r1=107135&r2=107136&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCParser/AsmParser.cpp (original)
+++ llvm/trunk/lib/MC/MCParser/AsmParser.cpp Tue Jun 29 08:24:40 2010
@@ -844,7 +844,6 @@
SMLoc EqualLoc = Lexer.getLoc();
const MCExpr *Value;
- SMLoc StartLoc = Lexer.getLoc();
if (ParseExpression(Value))
return true;
@@ -1116,7 +1115,6 @@
return true;
int64_t FillExpr = 0;
- bool HasFillExpr = false;
if (Lexer.isNot(AsmToken::EndOfStatement)) {
if (Lexer.isNot(AsmToken::Comma))
return TokError("unexpected token in '.space' directive");
@@ -1125,8 +1123,6 @@
if (ParseAbsoluteExpression(FillExpr))
return true;
- HasFillExpr = true;
-
if (Lexer.isNot(AsmToken::EndOfStatement))
return TokError("unexpected token in '.space' directive");
}
@@ -1183,7 +1179,6 @@
/// ::= .org expression [ , expression ]
bool AsmParser::ParseDirectiveOrg() {
const MCExpr *Offset;
- SMLoc StartLoc = Lexer.getLoc();
if (ParseExpression(Offset))
return true;
@@ -1387,7 +1382,6 @@
return TokError("unexpected token in '.desc' directive");
Lex();
- SMLoc DescLoc = Lexer.getLoc();
int64_t DescValue;
if (ParseAbsoluteExpression(DescValue))
return true;
@@ -1673,7 +1667,6 @@
Lex();
const MCExpr *Value;
- SMLoc StartLoc = Lexer.getLoc();
if (ParseExpression(Value))
return true;
More information about the llvm-commits
mailing list