Lines Matching refs:EndLoc
548 bool parseExpression(const MCExpr *&Res, SMLoc &EndLoc) override;
549 bool parsePrimaryExpr(const MCExpr *&Res, SMLoc &EndLoc,
551 bool parseParenExpression(const MCExpr *&Res, SMLoc &EndLoc) override;
553 SMLoc &EndLoc) override;
665 bool parseBinOpRHS(unsigned Precedence, const MCExpr *&Res, SMLoc &EndLoc);
666 bool parseParenExpr(const MCExpr *&Res, SMLoc &EndLoc);
667 bool parseBracketExpr(const MCExpr *&Res, SMLoc &EndLoc);
1535 bool MasmParser::parseParenExpr(const MCExpr *&Res, SMLoc &EndLoc) { in parseParenExpr() argument
1538 EndLoc = Lexer.getTok().getEndLoc(); in parseParenExpr()
1547 bool MasmParser::parseBracketExpr(const MCExpr *&Res, SMLoc &EndLoc) { in parseBracketExpr() argument
1550 EndLoc = getTok().getEndLoc(); in parseBracketExpr()
1564 bool MasmParser::parsePrimaryExpr(const MCExpr *&Res, SMLoc &EndLoc, in parsePrimaryExpr() argument
1576 if (parsePrimaryExpr(Res, EndLoc, nullptr)) in parsePrimaryExpr()
1595 EndLoc = FirstTokenLoc; in parsePrimaryExpr()
1603 if (parsePrimaryExpr(Res, EndLoc, nullptr)) in parsePrimaryExpr()
1633 EndLoc = SMLoc::getFromPointer(Identifier.end()); in parsePrimaryExpr()
1704 return Error(EndLoc, "unexpected modifier on variable reference"); in parsePrimaryExpr()
1737 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1759 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1769 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1775 return parseParenExpr(Res, EndLoc); in parsePrimaryExpr()
1780 return parseBracketExpr(Res, EndLoc); in parsePrimaryExpr()
1783 if (parsePrimaryExpr(Res, EndLoc, nullptr)) in parsePrimaryExpr()
1789 if (parsePrimaryExpr(Res, EndLoc, nullptr)) in parsePrimaryExpr()
1795 if (parsePrimaryExpr(Res, EndLoc, nullptr)) in parsePrimaryExpr()
1829 if (parseExpression(Res, EndLoc)) in parsePrimaryExpr()
1839 SMLoc EndLoc; in parseExpression() local
1840 return parseExpression(Res, EndLoc); in parseExpression()
1849 static bool isAngleBracketString(SMLoc &StrLoc, SMLoc &EndLoc) { in isAngleBracketString() argument
1860 EndLoc = StrLoc.getFromPointer(CharPtr + 1); in isAngleBracketString()
1887 bool MasmParser::parseExpression(const MCExpr *&Res, SMLoc &EndLoc) { in parseExpression() argument
1890 if (getTargetParser().parsePrimaryExpr(Res, EndLoc) || in parseExpression()
1891 parseBinOpRHS(1, Res, EndLoc)) in parseExpression()
1903 bool MasmParser::parseParenExpression(const MCExpr *&Res, SMLoc &EndLoc) { in parseParenExpression() argument
1905 return parseParenExpr(Res, EndLoc) || parseBinOpRHS(1, Res, EndLoc); in parseParenExpression()
1909 SMLoc &EndLoc) { in parseParenExprOfDepth() argument
1910 if (parseParenExpr(Res, EndLoc)) in parseParenExprOfDepth()
1914 if (parseBinOpRHS(1, Res, EndLoc)) in parseParenExprOfDepth()
1920 EndLoc = getTok().getEndLoc(); in parseParenExprOfDepth()
2030 SMLoc &EndLoc) { in parseBinOpRHS() argument
2062 if (getTargetParser().parsePrimaryExpr(RHS, EndLoc)) in parseBinOpRHS()
2069 if (TokPrec < NextTokPrec && parseBinOpRHS(TokPrec + 1, RHS, EndLoc)) in parseBinOpRHS()
3012 SMLoc StrLoc = Lexer.getLoc(), EndLoc; in parseMacroArgument() local
3013 if (Lexer.is(AsmToken::Less) && isAngleBracketString(StrLoc, EndLoc)) { in parseMacroArgument()
3015 const char *EndChar = EndLoc.getPointer() - 1; in parseMacroArgument()
3016 jumpToLoc(EndLoc, CurBuffer, EndStatementAtEOFStack.back()); in parseMacroArgument()
3146 SMLoc EndLoc; in parseMacroArguments() local
3152 if (parseExpression(AbsoluteExp, EndLoc)) in parseMacroArguments()
3158 const char *EndChar = EndLoc.getPointer(); in parseMacroArguments()
3441 SMLoc EndLoc; in parseDirectiveEquate() local
3442 if (parseExpression(Expr, EndLoc)) in parseDirectiveEquate()
3445 StartLoc.getPointer(), EndLoc.getPointer() - StartLoc.getPointer()); in parseDirectiveEquate()
3453 {StartLoc, EndLoc}); in parseDirectiveEquate()
3537 SMLoc EndLoc, StartLoc = getTok().getLoc(); in parseAngleBracketString() local
3538 if (isAngleBracketString(StartLoc, EndLoc)) { in parseAngleBracketString()
3540 const char *EndChar = EndLoc.getPointer() - 1; in parseAngleBracketString()
3541 jumpToLoc(EndLoc, CurBuffer, EndStatementAtEOFStack.back()); in parseAngleBracketString()
5896 SMLoc EndLoc = getTok().getLoc(); in parseDirectiveExitMacro() local
5898 return Error(EndLoc, in parseDirectiveExitMacro()
6236 SMLoc StartLoc, EndLoc; in parseDirectiveIfdef() local
6238 getTargetParser().tryParseRegister(Reg, StartLoc, EndLoc).isSuccess(); in parseDirectiveIfdef()
6356 SMLoc StartLoc, EndLoc; in parseDirectiveElseIfdef() local
6358 getTargetParser().tryParseRegister(Reg, StartLoc, EndLoc).isSuccess(); in parseDirectiveElseIfdef()
6528 SMLoc StartLoc, EndLoc; in parseDirectiveErrorIfdef() local
6530 getTargetParser().tryParseRegister(Reg, StartLoc, EndLoc).isSuccess(); in parseDirectiveErrorIfdef()
6849 SMLoc EndLoc = getTok().getLoc(); in expandStatement() local
6891 if (expandMacro(OS, M.Body, M.Parameters, Arguments, M.Locals, EndLoc)) in expandStatement()
6897 CurBuffer = SrcMgr.AddNewSourceBuffer(std::move(Expansion), EndLoc); in expandStatement()