mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 16:24:23 +00:00
fix a bug in range information for $42, eliminate an
unneeded argument from ParseExpression. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93536 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -271,8 +271,8 @@ bool AsmParser::ParsePrimaryExpr(const MCExpr *&Res, SMLoc &EndLoc) {
|
||||
}
|
||||
|
||||
bool AsmParser::ParseExpression(const MCExpr *&Res) {
|
||||
SMLoc L;
|
||||
return ParseExpression(Res, L, L);
|
||||
SMLoc EndLoc;
|
||||
return ParseExpression(Res, EndLoc);
|
||||
}
|
||||
|
||||
/// ParseExpression - Parse an expression and return it.
|
||||
@ -282,9 +282,7 @@ bool AsmParser::ParseExpression(const MCExpr *&Res) {
|
||||
/// expr ::= expr *,/,%,<<,>> expr -> highest.
|
||||
/// expr ::= primaryexpr
|
||||
///
|
||||
bool AsmParser::ParseExpression(const MCExpr *&Res,
|
||||
SMLoc &StartLoc, SMLoc &EndLoc) {
|
||||
StartLoc = Lexer.getLoc();
|
||||
bool AsmParser::ParseExpression(const MCExpr *&Res, SMLoc &EndLoc) {
|
||||
Res = 0;
|
||||
return ParsePrimaryExpr(Res, EndLoc) ||
|
||||
ParseBinOpRHS(1, Res, EndLoc);
|
||||
|
Reference in New Issue
Block a user