Lines Matching refs:getTok
833 if (Lexer.getTok().is(AsmToken::Error)) in Lex()
837 if (getTok().is(AsmToken::EndOfStatement)) { in Lex()
839 if (!getTok().getString().empty() && getTok().getString().front() != '\n' && in Lex()
840 getTok().getString().front() != '\r' && MAI.preserveAsmComments()) in Lex()
841 Out.addExplicitComment(Twine(getTok().getString())); in Lex()
926 if (Parsed && !hasPendingError() && Lexer.getTok().is(AsmToken::Error)) { in Run()
948 printError(getTok().getLoc(), "unmatched .ifs or .elses"); in Run()
955 printError(getTok().getLoc(), "unassigned file number: " + in Run()
977 printError(getTok().getLoc(), "assembler local symbol '" + in Run()
1005 return Error(getTok().getLoc(), in checkForValidSection()
1022 const char *Start = getTok().getLoc().getPointer(); in parseStringToEndOfStatement()
1027 const char *End = getTok().getLoc().getPointer(); in parseStringToEndOfStatement()
1032 const char *Start = getTok().getLoc().getPointer(); in parseStringToComma()
1038 const char *End = getTok().getLoc().getPointer(); in parseStringToComma()
1052 EndLoc = Lexer.getTok().getEndLoc(); in parseParenExpr()
1065 EndLoc = getTok().getEndLoc(); in parseBracketExpr()
1100 if (getTok().is(AsmToken::Dollar)) { in parsePrimaryExpr()
1190 SMLoc Loc = getTok().getLoc(); in parsePrimaryExpr()
1191 int64_t IntVal = getTok().getIntVal(); in parsePrimaryExpr()
1193 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1197 StringRef IDVal = getTok().getString(); in parsePrimaryExpr()
1214 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1221 APFloat RealVal(APFloat::IEEEdouble(), getTok().getString()); in parsePrimaryExpr()
1224 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1234 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1327 TokError("invalid variant on expression '" + getTok().getIdentifier() + in applyModifierToExpr()
1429 MCSymbolRefExpr::getVariantKindForName(getTok().getIdentifier()); in parseExpression()
1431 return TokError("invalid variant '" + getTok().getIdentifier() + "'"); in parseExpression()
1435 return TokError("invalid modifier '" + getTok().getIdentifier() + in parseExpression()
1469 EndLoc = getTok().getEndLoc(); in parseParenExprOfDepth()
1702 if (getTok().getString().empty() || getTok().getString().front() == '\r' || in parseStatement()
1703 getTok().getString().front() == '\n') in parseStatement()
1709 AsmToken ID = getTok(); in parseStatement()
1720 LocalLabelVal = getTok().getIntVal(); in parseStatement()
1728 IDVal = getTok().getString(); in parseStatement()
1855 if (getTok().is(AsmToken::Hash)) { in parseStatement()
1863 if (getTok().is(AsmToken::EndOfStatement)) { in parseStatement()
1919 SMLoc StartTokLoc = getTok().getLoc(); in parseStatement()
1929 if (TPDirectiveReturn && StartTokLoc != getTok().getLoc()) in parseStatement()
1932 if (!TPDirectiveReturn || StartTokLoc != getTok().getLoc()) in parseStatement()
2316 assert(getTok().is(AsmToken::Integer) && in parseCppHashLineFilenameComment()
2318 int64_t LineNumber = getTok().getIntVal(); in parseCppHashLineFilenameComment()
2320 assert(getTok().is(AsmToken::String) && in parseCppHashLineFilenameComment()
2322 StringRef Filename = getTok().getString(); in parseCppHashLineFilenameComment()
2622 MA.push_back(getTok()); in parseMacroArgument()
2648 MA.push_back(getTok()); in parseMacroArgument()
2799 if (expandMacro(OS, Body, M->Parameters, A, true, getTok().getLoc())) in handleMacroEntry()
2812 NameLoc, CurBuffer, getTok().getLoc(), TheCondStack.size()}; in handleMacroEntry()
2886 Res = StringRef(PrefixLoc.getPointer(), getTok().getString().size() + 1); in parseIdentifier()
2894 Res = getTok().getIdentifier(); in parseIdentifier()
2914 if (check(getTok().isNot(AsmToken::String), "expected string")) in parseEscapedString()
2918 StringRef Str = getTok().getStringContents(); in parseEscapedString()
2990 SMLoc EndLoc, StartLoc = getTok().getLoc(); in parseAngleBracketString()
3027 SMLoc OffsetLoc = Lexer.getTok().getLoc(); in parseDirectiveReloc()
3032 check(getTok().isNot(AsmToken::Identifier), "expected relocation name")) in parseDirectiveReloc()
3035 SMLoc NameLoc = Lexer.getTok().getLoc(); in parseDirectiveReloc()
3036 StringRef Name = Lexer.getTok().getIdentifier(); in parseDirectiveReloc()
3090 if (Asm.getTok().isNot(AsmToken::Integer) && in parseHexOcta()
3091 Asm.getTok().isNot(AsmToken::BigNum)) in parseHexOcta()
3093 SMLoc ExprLoc = Asm.getTok().getLoc(); in parseHexOcta()
3094 APInt IntValue = Asm.getTok().getAPIntVal(); in parseHexOcta()
3151 StringRef IDVal = getTok().getString(); in parseRealValue()
3229 SizeLoc = getTok().getLoc(); in parseDirectiveFill()
3233 ExprLoc = getTok().getLoc(); in parseDirectiveFill()
3296 if (getTok().isNot(AsmToken::Comma)) { in parseDirectiveAlign()
3312 if (IsPow2 && (ValueSize == 1) && getTok().is(AsmToken::EndOfStatement)) { in parseDirectiveAlign()
3381 FileNumber = getTok().getIntVal(); in parseDirectiveFile()
3392 if (check(getTok().isNot(AsmToken::String), in parseDirectiveFile()
3420 if (check(getTok().isNot(AsmToken::Identifier), in parseDirectiveFile()
3434 check(getTok().isNot(AsmToken::String), in parseDirectiveFile()
3519 SMLoc Loc = getTok().getLoc(); in parseDirectiveLoc()
3529 LineNumber = getTok().getIntVal(); in parseDirectiveLoc()
3537 ColumnPos = getTok().getIntVal(); in parseDirectiveLoc()
3550 SMLoc Loc = getTok().getLoc(); in parseDirectiveLoc()
3561 Loc = getTok().getLoc(); in parseDirectiveLoc()
3578 Loc = getTok().getLoc(); in parseDirectiveLoc()
3618 SMLoc FileNumberLoc = getTok().getLoc(); in parseDirectiveCVFile()
3627 check(getTok().isNot(AsmToken::String), in parseDirectiveCVFile()
3632 if (check(getTok().isNot(AsmToken::String), in parseDirectiveCVFile()
3681 SMLoc FunctionIdLoc = getTok().getLoc(); in parseDirectiveCVFuncId()
3704 SMLoc FunctionIdLoc = getTok().getLoc(); in parseDirectiveCVInlineSiteId()
3717 getTok().getIdentifier() != "within"), in parseDirectiveCVInlineSiteId()
3728 getTok().getIdentifier() != "inlined_at"), in parseDirectiveCVInlineSiteId()
3741 IACol = getTok().getIntVal(); in parseDirectiveCVInlineSiteId()
3764 SMLoc DirectiveLoc = getTok().getLoc(); in parseDirectiveCVLoc()
3772 LineNumber = getTok().getIntVal(); in parseDirectiveCVLoc()
3780 ColumnPos = getTok().getIntVal(); in parseDirectiveCVLoc()
3791 SMLoc Loc = getTok().getLoc(); in parseDirectiveCVLoc()
3797 Loc = getTok().getLoc(); in parseDirectiveCVLoc()
3828 SMLoc Loc = getTok().getLoc(); in parseDirectiveCVLinetable()
3852 SMLoc Loc = getTok().getLoc(); in parseDirectiveCVInlineLinetable()
4461 AsmToken EndToken, StartToken = getTok(); in parseDirectiveMacro()
4477 if (getTok().getIdentifier() == ".endm" || in parseDirectiveMacro()
4478 getTok().getIdentifier() == ".endmacro") { in parseDirectiveMacro()
4480 EndToken = getTok(); in parseDirectiveMacro()
4490 } else if (getTok().getIdentifier() == ".macro") { in parseDirectiveMacro()
4711 SMLoc Loc = getTok().getLoc(); in parseDirectiveBundleLock()
4886 SMLoc Loc = getTok().getLoc(); in parseDirectiveSymbolAttribute()
5005 SMLoc IncludeLoc = getTok().getLoc(); in parseDirectiveInclude()
5007 if (check(getTok().isNot(AsmToken::String), in parseDirectiveInclude()
5010 check(getTok().isNot(AsmToken::EndOfStatement), in parseDirectiveInclude()
5026 SMLoc IncbinLoc = getTok().getLoc(); in parseDirectiveIncbin()
5027 if (check(getTok().isNot(AsmToken::String), in parseDirectiveIncbin()
5038 if (getTok().isNot(AsmToken::Comma)) { in parseDirectiveIncbin()
5043 CountLoc = getTok().getLoc(); in parseDirectiveIncbin()
5165 StringRef String1 = getTok().getStringContents(); in parseDirectiveIfeqs()
5183 StringRef String2 = getTok().getStringContents(); in parseDirectiveIfeqs()
5306 Message = getTok().getStringContents(); in parseDirectiveError()
5329 Message = getTok().getStringContents(); in parseDirectiveWarning()
5526 AsmToken EndToken, StartToken = getTok(); in parseMacroLikeBody()
5537 (getTok().getIdentifier() == ".rep" || in parseMacroLikeBody()
5538 getTok().getIdentifier() == ".rept" || in parseMacroLikeBody()
5539 getTok().getIdentifier() == ".irp" || in parseMacroLikeBody()
5540 getTok().getIdentifier() == ".irpc")) { in parseMacroLikeBody()
5545 if (Lexer.is(AsmToken::Identifier) && getTok().getIdentifier() == ".endr") { in parseMacroLikeBody()
5547 EndToken = getTok(); in parseMacroLikeBody()
5550 printError(getTok().getLoc(), in parseMacroLikeBody()
5582 DirectiveLoc, CurBuffer, getTok().getLoc(), TheCondStack.size()}; in instantiateMacroLikeBody()
5595 SMLoc CountLoc = getTok().getLoc(); in parseDirectiveRept()
5620 if (expandMacro(OS, M->Body, None, None, false, getTok().getLoc())) in parseDirectiveRept()
5653 if (expandMacro(OS, M->Body, Parameter, Arg, true, getTok().getLoc())) in parseDirectiveIrp()
5698 if (expandMacro(OS, M->Body, Parameter, Arg, true, getTok().getLoc())) in parseDirectiveIrpc()
5753 const AsmToken StrTok = getTok(); in parseDirectivePrint()
6100 SMLoc EqualLoc = Parser.getTok().getLoc(); in parseAssignmentExpression()