diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-01-15 19:39:23 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-01-15 19:39:23 +0000 |
| commit | e17df0b7f006e5500a90276ea08b2dddb88e6c1b (patch) | |
| tree | 315782eb0170f91fc1e69398da76807faac6122c /llvm/tools/llvm-mc/AsmParser.cpp | |
| parent | 015cfb157765f015d1a895ed1da2483e32bbbedb (diff) | |
| download | bcm5719-llvm-e17df0b7f006e5500a90276ea08b2dddb88e6c1b.tar.gz bcm5719-llvm-e17df0b7f006e5500a90276ea08b2dddb88e6c1b.zip | |
fix a bug in range information for $42, eliminate an
unneeded argument from ParseExpression.
llvm-svn: 93536
Diffstat (limited to 'llvm/tools/llvm-mc/AsmParser.cpp')
| -rw-r--r-- | llvm/tools/llvm-mc/AsmParser.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/tools/llvm-mc/AsmParser.cpp b/llvm/tools/llvm-mc/AsmParser.cpp index 4e03646fec6..d4af4bd0df6 100644 --- a/llvm/tools/llvm-mc/AsmParser.cpp +++ b/llvm/tools/llvm-mc/AsmParser.cpp @@ -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); |

