Lines Matching refs:getTok

910   if (Lexer.getTok().is(AsmToken::Error))  in Lex()
914 if (getTok().is(AsmToken::EndOfStatement)) { in Lex()
916 if (!getTok().getString().empty() && getTok().getString().front() != '\n' && in Lex()
917 getTok().getString().front() != '\r' && MAI.preserveAsmComments()) in Lex()
918 Out.addExplicitComment(Twine(getTok().getString())); in Lex()
1006 if (Parsed && !hasPendingError() && Lexer.getTok().is(AsmToken::Error)) { in Run()
1028 printError(getTok().getLoc(), "unmatched .ifs or .elses"); in Run()
1035 printError(getTok().getLoc(), "unassigned file number: " + in Run()
1058 printError(getTok().getLoc(), "assembler local symbol '" + in Run()
1089 return Error(getTok().getLoc(), in checkForValidSection()
1106 const char *Start = getTok().getLoc().getPointer(); in parseStringToEndOfStatement()
1111 const char *End = getTok().getLoc().getPointer(); in parseStringToEndOfStatement()
1116 const char *Start = getTok().getLoc().getPointer(); in parseStringToComma()
1122 const char *End = getTok().getLoc().getPointer(); in parseStringToComma()
1134 EndLoc = Lexer.getTok().getEndLoc(); in parseParenExpr()
1146 EndLoc = getTok().getEndLoc(); in parseBracketExpr()
1183 if (getTok().is(AsmToken::Dollar) || getTok().is(AsmToken::Star)) { in parsePrimaryExpr()
1185 if ((getTok().is(AsmToken::Dollar) && MAI.getDollarIsPC()) || in parsePrimaryExpr()
1186 (getTok().is(AsmToken::Star) && MAI.getStarIsPC())) in parsePrimaryExpr()
1278 SMLoc Loc = getTok().getLoc(); in parsePrimaryExpr()
1279 int64_t IntVal = getTok().getIntVal(); in parsePrimaryExpr()
1281 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1285 StringRef IDVal = getTok().getString(); in parsePrimaryExpr()
1302 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1309 APFloat RealVal(APFloat::IEEEdouble(), getTok().getString()); in parsePrimaryExpr()
1312 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1325 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1417 TokError("invalid variant on expression '" + getTok().getIdentifier() + in applyModifierToExpr()
1517 MCSymbolRefExpr::getVariantKindForName(getTok().getIdentifier()); in parseExpression()
1519 return TokError("invalid variant '" + getTok().getIdentifier() + "'"); in parseExpression()
1523 return TokError("invalid modifier '" + getTok().getIdentifier() + in parseExpression()
1557 EndLoc = getTok().getEndLoc(); in parseParenExprOfDepth()
1789 if (getTok().getString().empty() || getTok().getString().front() == '\r' || in parseStatement()
1790 getTok().getString().front() == '\n') in parseStatement()
1796 AsmToken ID = getTok(); in parseStatement()
1807 LocalLabelVal = getTok().getIntVal(); in parseStatement()
1815 IDVal = getTok().getString(); in parseStatement()
1939 if (getTok().is(AsmToken::Hash)) { in parseStatement()
1947 if (getTok().is(AsmToken::EndOfStatement)) { in parseStatement()
2414 assert(getTok().is(AsmToken::Integer) && in parseCppHashLineFilenameComment()
2416 int64_t LineNumber = getTok().getIntVal(); in parseCppHashLineFilenameComment()
2418 assert(getTok().is(AsmToken::String) && in parseCppHashLineFilenameComment()
2420 StringRef Filename = getTok().getString(); in parseCppHashLineFilenameComment()
2716 MA.push_back(getTok()); in parseMacroArgument()
2740 MA.push_back(getTok()); in parseMacroArgument()
2890 return Error(getTok().getLoc(), "Wrong number of arguments"); in handleMacroEntry()
2904 NameLoc, CurBuffer, getTok().getLoc(), TheCondStack.size()}; in handleMacroEntry()
2923 if (getTok().is(AsmToken::EndOfStatement)) in handleMacroExit()
2934 SMLoc ExprLoc = getTok().getLoc(); in parseAssignment()
3000 Res = StringRef(PrefixLoc.getPointer(), getTok().getString().size() + 1); in parseIdentifier()
3008 Res = getTok().getIdentifier(); in parseIdentifier()
3029 if (check(getTok().isNot(AsmToken::String), "expected string")) in parseEscapedString()
3033 StringRef Str = getTok().getStringContents(); in parseEscapedString()
3110 SMLoc EndLoc, StartLoc = getTok().getLoc(); in parseAngleBracketString()
3138 } while (!ZeroTerminated && getTok().is(AsmToken::String)); in parseDirectiveAscii()
3152 SMLoc OffsetLoc = Lexer.getTok().getLoc(); in parseDirectiveReloc()
3157 check(getTok().isNot(AsmToken::Identifier), "expected relocation name")) in parseDirectiveReloc()
3160 SMLoc NameLoc = Lexer.getTok().getLoc(); in parseDirectiveReloc()
3161 StringRef Name = Lexer.getTok().getIdentifier(); in parseDirectiveReloc()
3212 if (Asm.getTok().isNot(AsmToken::Integer) && in parseHexOcta()
3213 Asm.getTok().isNot(AsmToken::BigNum)) in parseHexOcta()
3215 SMLoc ExprLoc = Asm.getTok().getLoc(); in parseHexOcta()
3216 APInt IntValue = Asm.getTok().getAPIntVal(); in parseHexOcta()
3271 StringRef IDVal = getTok().getString(); in parseRealValue()
3347 SizeLoc = getTok().getLoc(); in parseDirectiveFill()
3351 ExprLoc = getTok().getLoc(); in parseDirectiveFill()
3414 if (getTok().isNot(AsmToken::Comma)) { in parseDirectiveAlign()
3430 if (IsPow2 && (ValueSize == 1) && getTok().is(AsmToken::EndOfStatement)) { in parseDirectiveAlign()
3517 FileNumber = getTok().getIntVal(); in parseDirectiveFile()
3554 if (check(getTok().isNot(AsmToken::Identifier), in parseDirectiveFile()
3568 check(getTok().isNot(AsmToken::String), in parseDirectiveFile()
3650 SMLoc Loc = getTok().getLoc(); in parseDirectiveLoc()
3660 LineNumber = getTok().getIntVal(); in parseDirectiveLoc()
3668 ColumnPos = getTok().getIntVal(); in parseDirectiveLoc()
3681 SMLoc Loc = getTok().getLoc(); in parseDirectiveLoc()
3692 Loc = getTok().getLoc(); in parseDirectiveLoc()
3709 Loc = getTok().getLoc(); in parseDirectiveLoc()
3749 SMLoc FileNumberLoc = getTok().getLoc(); in parseDirectiveCVFile()
3758 check(getTok().isNot(AsmToken::String), in parseDirectiveCVFile()
3763 if (check(getTok().isNot(AsmToken::String), in parseDirectiveCVFile()
3811 SMLoc FunctionIdLoc = getTok().getLoc(); in parseDirectiveCVFuncId()
3832 SMLoc FunctionIdLoc = getTok().getLoc(); in parseDirectiveCVInlineSiteId()
3845 getTok().getIdentifier() != "within"), in parseDirectiveCVInlineSiteId()
3856 getTok().getIdentifier() != "inlined_at"), in parseDirectiveCVInlineSiteId()
3869 IACol = getTok().getIntVal(); in parseDirectiveCVInlineSiteId()
3891 SMLoc DirectiveLoc = getTok().getLoc(); in parseDirectiveCVLoc()
3899 LineNumber = getTok().getIntVal(); in parseDirectiveCVLoc()
3907 ColumnPos = getTok().getIntVal(); in parseDirectiveCVLoc()
3918 SMLoc Loc = getTok().getLoc(); in parseDirectiveCVLoc()
3924 Loc = getTok().getLoc(); in parseDirectiveCVLoc()
3955 SMLoc Loc = getTok().getLoc(); in parseDirectiveCVLinetable()
3977 SMLoc Loc = getTok().getLoc(); in parseDirectiveCVInlineLinetable()
4609 AsmToken EndToken, StartToken = getTok(); in parseDirectiveMacro()
4625 if (getTok().getIdentifier() == ".endm" || in parseDirectiveMacro()
4626 getTok().getIdentifier() == ".endmacro") { in parseDirectiveMacro()
4628 EndToken = getTok(); in parseDirectiveMacro()
4638 } else if (getTok().getIdentifier() == ".macro") { in parseDirectiveMacro()
4853 SMLoc Loc = getTok().getLoc(); in parseDirectiveBundleLock()
5008 SMLoc Loc = getTok().getLoc(); in parseDirectiveSymbolAttribute()
5116 SMLoc IncludeLoc = getTok().getLoc(); in parseDirectiveInclude()
5118 if (check(getTok().isNot(AsmToken::String), in parseDirectiveInclude()
5121 check(getTok().isNot(AsmToken::EndOfStatement), in parseDirectiveInclude()
5137 SMLoc IncbinLoc = getTok().getLoc(); in parseDirectiveIncbin()
5138 if (check(getTok().isNot(AsmToken::String), in parseDirectiveIncbin()
5149 if (getTok().isNot(AsmToken::Comma)) { in parseDirectiveIncbin()
5154 CountLoc = getTok().getLoc(); in parseDirectiveIncbin()
5271 StringRef String1 = getTok().getStringContents(); in parseDirectiveIfeqs()
5289 StringRef String2 = getTok().getStringContents(); in parseDirectiveIfeqs()
5409 Message = getTok().getStringContents(); in parseDirectiveError()
5432 Message = getTok().getStringContents(); in parseDirectiveWarning()
5634 AsmToken EndToken, StartToken = getTok(); in parseMacroLikeBody()
5645 StringRef Ident = getTok().getIdentifier(); in parseMacroLikeBody()
5651 EndToken = getTok(); in parseMacroLikeBody()
5655 printError(getTok().getLoc(), "expected newline"); in parseMacroLikeBody()
5685 DirectiveLoc, CurBuffer, getTok().getLoc(), TheCondStack.size()}; in instantiateMacroLikeBody()
5698 SMLoc CountLoc = getTok().getLoc(); in parseDirectiveRept()
5849 const AsmToken StrTok = getTok(); in parseDirectivePrint()
5951 SMLoc Loc = getTok().getLoc(); in parseDirectiveLTODiscard()
6258 AsmToken LabelTok = getTok(); in parseAsHLASMLabel()
6276 if (getTok().is(AsmToken::EndOfStatement)) in parseAsHLASMLabel()
6303 AsmToken OperationEntryTok = Lexer.getTok(); in parseAsMachineInstruction()
6332 if (getTok().isNot(AsmToken::Space)) in parseStatement()
6339 if (getTok().getString().empty() || getTok().getString().front() == '\r' || in parseStatement()
6340 getTok().getString().front() == '\n') in parseStatement()
6355 if (getTok().getString().front() == '\n' || in parseStatement()
6356 getTok().getString().front() == '\r') { in parseStatement()
6414 SMLoc EqualLoc = Parser.getTok().getLoc(); in parseAssignmentExpression()