Lines Matching refs:getTok
907 if (Lexer.getTok().is(AsmToken::Error)) in Lex()
911 if (getTok().is(AsmToken::EndOfStatement)) { in Lex()
913 if (!getTok().getString().empty() && getTok().getString().front() != '\n' && in Lex()
914 getTok().getString().front() != '\r' && MAI.preserveAsmComments()) in Lex()
915 Out.addExplicitComment(Twine(getTok().getString())); in Lex()
1004 if (Parsed && !hasPendingError() && Lexer.getTok().is(AsmToken::Error)) { in Run()
1026 printError(getTok().getLoc(), "unmatched .ifs or .elses"); in Run()
1033 printError(getTok().getLoc(), "unassigned file number: " + in Run()
1055 printError(getTok().getLoc(), "assembler local symbol '" + in Run()
1086 return Error(getTok().getLoc(), in checkForValidSection()
1103 const char *Start = getTok().getLoc().getPointer(); in parseStringToEndOfStatement()
1108 const char *End = getTok().getLoc().getPointer(); in parseStringToEndOfStatement()
1113 const char *Start = getTok().getLoc().getPointer(); in parseStringToComma()
1119 const char *End = getTok().getLoc().getPointer(); in parseStringToComma()
1131 EndLoc = Lexer.getTok().getEndLoc(); in parseParenExpr()
1143 EndLoc = getTok().getEndLoc(); in parseBracketExpr()
1180 if (getTok().is(AsmToken::Dollar) || getTok().is(AsmToken::Star)) { in parsePrimaryExpr()
1182 if ((getTok().is(AsmToken::Dollar) && MAI.getDollarIsPC()) || in parsePrimaryExpr()
1183 (getTok().is(AsmToken::Star) && MAI.getStarIsPC())) in parsePrimaryExpr()
1275 SMLoc Loc = getTok().getLoc(); in parsePrimaryExpr()
1276 int64_t IntVal = getTok().getIntVal(); in parsePrimaryExpr()
1278 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1282 StringRef IDVal = getTok().getString(); in parsePrimaryExpr()
1299 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1306 APFloat RealVal(APFloat::IEEEdouble(), getTok().getString()); in parsePrimaryExpr()
1309 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1322 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1414 TokError("invalid variant on expression '" + getTok().getIdentifier() + in applyModifierToExpr()
1516 MCSymbolRefExpr::getVariantKindForName(getTok().getIdentifier()); in parseExpression()
1518 return TokError("invalid variant '" + getTok().getIdentifier() + "'"); in parseExpression()
1522 return TokError("invalid modifier '" + getTok().getIdentifier() + in parseExpression()
1556 EndLoc = getTok().getEndLoc(); in parseParenExprOfDepth()
1788 if (getTok().getString().empty() || getTok().getString().front() == '\r' || in parseStatement()
1789 getTok().getString().front() == '\n') in parseStatement()
1795 AsmToken ID = getTok(); in parseStatement()
1806 LocalLabelVal = getTok().getIntVal(); in parseStatement()
1814 IDVal = getTok().getString(); in parseStatement()
1940 if (getTok().is(AsmToken::Hash)) { in parseStatement()
1948 if (getTok().is(AsmToken::EndOfStatement)) { in parseStatement()
2007 SMLoc StartTokLoc = getTok().getLoc(); in parseStatement()
2017 if (TPDirectiveReturn && StartTokLoc != getTok().getLoc()) in parseStatement()
2020 if (!TPDirectiveReturn || StartTokLoc != getTok().getLoc()) in parseStatement()
2419 assert(getTok().is(AsmToken::Integer) && in parseCppHashLineFilenameComment()
2421 int64_t LineNumber = getTok().getIntVal(); in parseCppHashLineFilenameComment()
2423 assert(getTok().is(AsmToken::String) && in parseCppHashLineFilenameComment()
2425 StringRef Filename = getTok().getString(); in parseCppHashLineFilenameComment()
2724 MA.push_back(getTok()); in parseMacroArgument()
2750 MA.push_back(getTok()); in parseMacroArgument()
2901 if (expandMacro(OS, Body, M->Parameters, A, true, getTok().getLoc())) in handleMacroEntry()
2914 NameLoc, CurBuffer, getTok().getLoc(), TheCondStack.size()}; in handleMacroEntry()
2940 SMLoc ExprLoc = getTok().getLoc(); in parseAssignment()
3006 Res = StringRef(PrefixLoc.getPointer(), getTok().getString().size() + 1); in parseIdentifier()
3014 Res = getTok().getIdentifier(); in parseIdentifier()
3035 if (check(getTok().isNot(AsmToken::String), "expected string")) in parseEscapedString()
3039 StringRef Str = getTok().getStringContents(); in parseEscapedString()
3111 SMLoc EndLoc, StartLoc = getTok().getLoc(); in parseAngleBracketString()
3139 } while (!ZeroTerminated && getTok().is(AsmToken::String)); in parseDirectiveAscii()
3153 SMLoc OffsetLoc = Lexer.getTok().getLoc(); in parseDirectiveReloc()
3158 check(getTok().isNot(AsmToken::Identifier), "expected relocation name")) in parseDirectiveReloc()
3161 SMLoc NameLoc = Lexer.getTok().getLoc(); in parseDirectiveReloc()
3162 StringRef Name = Lexer.getTok().getIdentifier(); in parseDirectiveReloc()
3213 if (Asm.getTok().isNot(AsmToken::Integer) && in parseHexOcta()
3214 Asm.getTok().isNot(AsmToken::BigNum)) in parseHexOcta()
3216 SMLoc ExprLoc = Asm.getTok().getLoc(); in parseHexOcta()
3217 APInt IntValue = Asm.getTok().getAPIntVal(); in parseHexOcta()
3272 StringRef IDVal = getTok().getString(); in parseRealValue()
3348 SizeLoc = getTok().getLoc(); in parseDirectiveFill()
3352 ExprLoc = getTok().getLoc(); in parseDirectiveFill()
3414 if (getTok().isNot(AsmToken::Comma)) { in parseDirectiveAlign()
3430 if (IsPow2 && (ValueSize == 1) && getTok().is(AsmToken::EndOfStatement)) { in parseDirectiveAlign()
3506 FileNumber = getTok().getIntVal(); in parseDirectiveFile()
3543 if (check(getTok().isNot(AsmToken::Identifier), in parseDirectiveFile()
3557 check(getTok().isNot(AsmToken::String), in parseDirectiveFile()
3639 SMLoc Loc = getTok().getLoc(); in parseDirectiveLoc()
3649 LineNumber = getTok().getIntVal(); in parseDirectiveLoc()
3657 ColumnPos = getTok().getIntVal(); in parseDirectiveLoc()
3670 SMLoc Loc = getTok().getLoc(); in parseDirectiveLoc()
3681 Loc = getTok().getLoc(); in parseDirectiveLoc()
3698 Loc = getTok().getLoc(); in parseDirectiveLoc()
3738 SMLoc FileNumberLoc = getTok().getLoc(); in parseDirectiveCVFile()
3747 check(getTok().isNot(AsmToken::String), in parseDirectiveCVFile()
3752 if (check(getTok().isNot(AsmToken::String), in parseDirectiveCVFile()
3800 SMLoc FunctionIdLoc = getTok().getLoc(); in parseDirectiveCVFuncId()
3821 SMLoc FunctionIdLoc = getTok().getLoc(); in parseDirectiveCVInlineSiteId()
3834 getTok().getIdentifier() != "within"), in parseDirectiveCVInlineSiteId()
3845 getTok().getIdentifier() != "inlined_at"), in parseDirectiveCVInlineSiteId()
3858 IACol = getTok().getIntVal(); in parseDirectiveCVInlineSiteId()
3880 SMLoc DirectiveLoc = getTok().getLoc(); in parseDirectiveCVLoc()
3888 LineNumber = getTok().getIntVal(); in parseDirectiveCVLoc()
3896 ColumnPos = getTok().getIntVal(); in parseDirectiveCVLoc()
3907 SMLoc Loc = getTok().getLoc(); in parseDirectiveCVLoc()
3913 Loc = getTok().getLoc(); in parseDirectiveCVLoc()
3944 SMLoc Loc = getTok().getLoc(); in parseDirectiveCVLinetable()
3966 SMLoc Loc = getTok().getLoc(); in parseDirectiveCVInlineLinetable()
4579 AsmToken EndToken, StartToken = getTok(); in parseDirectiveMacro()
4595 if (getTok().getIdentifier() == ".endm" || in parseDirectiveMacro()
4596 getTok().getIdentifier() == ".endmacro") { in parseDirectiveMacro()
4598 EndToken = getTok(); in parseDirectiveMacro()
4608 } else if (getTok().getIdentifier() == ".macro") { in parseDirectiveMacro()
4825 SMLoc Loc = getTok().getLoc(); in parseDirectiveBundleLock()
4980 SMLoc Loc = getTok().getLoc(); in parseDirectiveSymbolAttribute()
5090 SMLoc IncludeLoc = getTok().getLoc(); in parseDirectiveInclude()
5092 if (check(getTok().isNot(AsmToken::String), in parseDirectiveInclude()
5095 check(getTok().isNot(AsmToken::EndOfStatement), in parseDirectiveInclude()
5111 SMLoc IncbinLoc = getTok().getLoc(); in parseDirectiveIncbin()
5112 if (check(getTok().isNot(AsmToken::String), in parseDirectiveIncbin()
5123 if (getTok().isNot(AsmToken::Comma)) { in parseDirectiveIncbin()
5128 CountLoc = getTok().getLoc(); in parseDirectiveIncbin()
5245 StringRef String1 = getTok().getStringContents(); in parseDirectiveIfeqs()
5263 StringRef String2 = getTok().getStringContents(); in parseDirectiveIfeqs()
5383 Message = getTok().getStringContents(); in parseDirectiveError()
5406 Message = getTok().getStringContents(); in parseDirectiveWarning()
5606 AsmToken EndToken, StartToken = getTok(); in parseMacroLikeBody()
5617 (getTok().getIdentifier() == ".rep" || in parseMacroLikeBody()
5618 getTok().getIdentifier() == ".rept" || in parseMacroLikeBody()
5619 getTok().getIdentifier() == ".irp" || in parseMacroLikeBody()
5620 getTok().getIdentifier() == ".irpc")) { in parseMacroLikeBody()
5625 if (Lexer.is(AsmToken::Identifier) && getTok().getIdentifier() == ".endr") { in parseMacroLikeBody()
5627 EndToken = getTok(); in parseMacroLikeBody()
5630 printError(getTok().getLoc(), in parseMacroLikeBody()
5662 DirectiveLoc, CurBuffer, getTok().getLoc(), TheCondStack.size()}; in instantiateMacroLikeBody()
5675 SMLoc CountLoc = getTok().getLoc(); in parseDirectiveRept()
5698 if (expandMacro(OS, M->Body, None, None, false, getTok().getLoc())) in parseDirectiveRept()
5729 if (expandMacro(OS, M->Body, Parameter, Arg, true, getTok().getLoc())) in parseDirectiveIrp()
5771 if (expandMacro(OS, M->Body, Parameter, Arg, true, getTok().getLoc())) in parseDirectiveIrpc()
5826 const AsmToken StrTok = getTok(); in parseDirectivePrint()
5922 SMLoc Loc = getTok().getLoc(); in parseDirectiveLTODiscard()
6232 AsmToken LabelTok = getTok(); in parseAsHLASMLabel()
6250 if (getTok().is(AsmToken::EndOfStatement)) in parseAsHLASMLabel()
6277 AsmToken OperationEntryTok = Lexer.getTok(); in parseAsMachineInstruction()
6306 if (getTok().isNot(AsmToken::Space)) in parseStatement()
6313 if (getTok().getString().empty() || getTok().getString().front() == '\r' || in parseStatement()
6314 getTok().getString().front() == '\n') in parseStatement()
6329 if (getTok().getString().front() == '\n' || in parseStatement()
6330 getTok().getString().front() == '\r') { in parseStatement()
6388 SMLoc EqualLoc = Parser.getTok().getLoc(); in parseAssignmentExpression()