diff options
author | Duncan Sands <baldrick@free.fr> | 2010-06-29 13:24:40 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2010-06-29 13:24:40 +0000 |
commit | 44886ac5eb52a14a88461fd89f230ae5f43690fb (patch) | |
tree | 23a4b30d7f64a386a058f637da93b004398d26ec /lib/MC | |
parent | 31a3a3ebaf9c28fcfd82b1494a47fb11cc00759b (diff) | |
download | external_llvm-44886ac5eb52a14a88461fd89f230ae5f43690fb.zip external_llvm-44886ac5eb52a14a88461fd89f230ae5f43690fb.tar.gz external_llvm-44886ac5eb52a14a88461fd89f230ae5f43690fb.tar.bz2 |
Remove unused calls to Lexer.getLoc and the pointless variable HasFillExpr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107136 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r-- | lib/MC/MCParser/AsmParser.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp index dea71dd..613a262 100644 --- a/lib/MC/MCParser/AsmParser.cpp +++ b/lib/MC/MCParser/AsmParser.cpp @@ -844,7 +844,6 @@ bool AsmParser::ParseAssignment(const StringRef &Name) { SMLoc EqualLoc = Lexer.getLoc(); const MCExpr *Value; - SMLoc StartLoc = Lexer.getLoc(); if (ParseExpression(Value)) return true; @@ -1116,7 +1115,6 @@ bool AsmParser::ParseDirectiveSpace() { 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 @@ bool AsmParser::ParseDirectiveSpace() { if (ParseAbsoluteExpression(FillExpr)) return true; - HasFillExpr = true; - if (Lexer.isNot(AsmToken::EndOfStatement)) return TokError("unexpected token in '.space' directive"); } @@ -1183,7 +1179,6 @@ bool AsmParser::ParseDirectiveFill() { /// ::= .org expression [ , expression ] bool AsmParser::ParseDirectiveOrg() { const MCExpr *Offset; - SMLoc StartLoc = Lexer.getLoc(); if (ParseExpression(Offset)) return true; @@ -1387,7 +1382,6 @@ bool AsmParser::ParseDirectiveDarwinSymbolDesc() { return TokError("unexpected token in '.desc' directive"); Lex(); - SMLoc DescLoc = Lexer.getLoc(); int64_t DescValue; if (ParseAbsoluteExpression(DescValue)) return true; @@ -1673,7 +1667,6 @@ bool AsmParser::ParseDirectiveDarwinLsym() { Lex(); const MCExpr *Value; - SMLoc StartLoc = Lexer.getLoc(); if (ParseExpression(Value)) return true; |