mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Remove unused variable Loc and pointless variables unified_syntax
and thumb_mode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107133 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -665,7 +665,6 @@ bool ARMAsmParser::ParseInstruction(const StringRef &Name, SMLoc NameLoc,
|
|||||||
|
|
||||||
Operands.push_back(Op.take());
|
Operands.push_back(Op.take());
|
||||||
|
|
||||||
SMLoc Loc = Parser.getTok().getLoc();
|
|
||||||
if (getLexer().isNot(AsmToken::EndOfStatement)) {
|
if (getLexer().isNot(AsmToken::EndOfStatement)) {
|
||||||
|
|
||||||
// Read the first operand.
|
// Read the first operand.
|
||||||
@@ -763,15 +762,10 @@ bool ARMAsmParser::ParseDirectiveSyntax(SMLoc L) {
|
|||||||
if (Tok.isNot(AsmToken::Identifier))
|
if (Tok.isNot(AsmToken::Identifier))
|
||||||
return Error(L, "unexpected token in .syntax directive");
|
return Error(L, "unexpected token in .syntax directive");
|
||||||
const StringRef &Mode = Tok.getString();
|
const StringRef &Mode = Tok.getString();
|
||||||
bool unified_syntax;
|
if (Mode == "unified" || Mode == "UNIFIED")
|
||||||
if (Mode == "unified" || Mode == "UNIFIED") {
|
|
||||||
Parser.Lex();
|
Parser.Lex();
|
||||||
unified_syntax = true;
|
else if (Mode == "divided" || Mode == "DIVIDED")
|
||||||
}
|
|
||||||
else if (Mode == "divided" || Mode == "DIVIDED") {
|
|
||||||
Parser.Lex();
|
Parser.Lex();
|
||||||
unified_syntax = false;
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
return Error(L, "unrecognized syntax mode in .syntax directive");
|
return Error(L, "unrecognized syntax mode in .syntax directive");
|
||||||
|
|
||||||
@@ -791,15 +785,10 @@ bool ARMAsmParser::ParseDirectiveCode(SMLoc L) {
|
|||||||
if (Tok.isNot(AsmToken::Integer))
|
if (Tok.isNot(AsmToken::Integer))
|
||||||
return Error(L, "unexpected token in .code directive");
|
return Error(L, "unexpected token in .code directive");
|
||||||
int64_t Val = Parser.getTok().getIntVal();
|
int64_t Val = Parser.getTok().getIntVal();
|
||||||
bool thumb_mode;
|
if (Val == 16)
|
||||||
if (Val == 16) {
|
|
||||||
Parser.Lex();
|
Parser.Lex();
|
||||||
thumb_mode = true;
|
else if (Val == 32)
|
||||||
}
|
|
||||||
else if (Val == 32) {
|
|
||||||
Parser.Lex();
|
Parser.Lex();
|
||||||
thumb_mode = false;
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
return Error(L, "invalid operand to .code directive");
|
return Error(L, "invalid operand to .code directive");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user