Remove unused calls to Lexer.getLoc and the pointless variable HasFillExpr.

llvm-svn: 107136
This commit is contained in:
Duncan Sands 2010-06-29 13:24:40 +00:00
parent 193bb1ee6a
commit 5667a08468
1 changed files with 0 additions and 7 deletions

View File

@ -844,7 +844,6 @@ bool AsmParser::ParseAssignment(const StringRef &Name) {
SMLoc EqualLoc = Lexer.getLoc(); SMLoc EqualLoc = Lexer.getLoc();
const MCExpr *Value; const MCExpr *Value;
SMLoc StartLoc = Lexer.getLoc();
if (ParseExpression(Value)) if (ParseExpression(Value))
return true; return true;
@ -1116,7 +1115,6 @@ bool AsmParser::ParseDirectiveSpace() {
return true; return true;
int64_t FillExpr = 0; int64_t FillExpr = 0;
bool HasFillExpr = false;
if (Lexer.isNot(AsmToken::EndOfStatement)) { if (Lexer.isNot(AsmToken::EndOfStatement)) {
if (Lexer.isNot(AsmToken::Comma)) if (Lexer.isNot(AsmToken::Comma))
return TokError("unexpected token in '.space' directive"); return TokError("unexpected token in '.space' directive");
@ -1125,8 +1123,6 @@ bool AsmParser::ParseDirectiveSpace() {
if (ParseAbsoluteExpression(FillExpr)) if (ParseAbsoluteExpression(FillExpr))
return true; return true;
HasFillExpr = true;
if (Lexer.isNot(AsmToken::EndOfStatement)) if (Lexer.isNot(AsmToken::EndOfStatement))
return TokError("unexpected token in '.space' directive"); return TokError("unexpected token in '.space' directive");
} }
@ -1183,7 +1179,6 @@ bool AsmParser::ParseDirectiveFill() {
/// ::= .org expression [ , expression ] /// ::= .org expression [ , expression ]
bool AsmParser::ParseDirectiveOrg() { bool AsmParser::ParseDirectiveOrg() {
const MCExpr *Offset; const MCExpr *Offset;
SMLoc StartLoc = Lexer.getLoc();
if (ParseExpression(Offset)) if (ParseExpression(Offset))
return true; return true;
@ -1387,7 +1382,6 @@ bool AsmParser::ParseDirectiveDarwinSymbolDesc() {
return TokError("unexpected token in '.desc' directive"); return TokError("unexpected token in '.desc' directive");
Lex(); Lex();
SMLoc DescLoc = Lexer.getLoc();
int64_t DescValue; int64_t DescValue;
if (ParseAbsoluteExpression(DescValue)) if (ParseAbsoluteExpression(DescValue))
return true; return true;
@ -1673,7 +1667,6 @@ bool AsmParser::ParseDirectiveDarwinLsym() {
Lex(); Lex();
const MCExpr *Value; const MCExpr *Value;
SMLoc StartLoc = Lexer.getLoc();
if (ParseExpression(Value)) if (ParseExpression(Value))
return true; return true;