Lines Matching refs:getTok

807   if (Lexer.getTok().is(AsmToken::Error))  in Lex()
811 if (getTok().is(AsmToken::EndOfStatement)) { in Lex()
813 if (!getTok().getString().empty() && getTok().getString().front() != '\n' && in Lex()
814 getTok().getString().front() != '\r' && MAI.preserveAsmComments()) in Lex()
815 Out.addExplicitComment(Twine(getTok().getString())); in Lex()
890 if (!hasPendingError() && Lexer.getTok().is(AsmToken::Error)) { in Run()
912 printError(getTok().getLoc(), "unmatched .ifs or .elses"); in Run()
919 printError(getTok().getLoc(), "unassigned file number: " + in Run()
941 printError(getTok().getLoc(), "assembler local symbol '" + in Run()
969 return Error(getTok().getLoc(), in checkForValidSection()
986 const char *Start = getTok().getLoc().getPointer(); in parseStringToEndOfStatement()
991 const char *End = getTok().getLoc().getPointer(); in parseStringToEndOfStatement()
996 const char *Start = getTok().getLoc().getPointer(); in parseStringToComma()
1002 const char *End = getTok().getLoc().getPointer(); in parseStringToComma()
1016 EndLoc = Lexer.getTok().getEndLoc(); in parseParenExpr()
1029 EndLoc = getTok().getEndLoc(); in parseBracketExpr()
1063 if (getTok().is(AsmToken::Dollar)) { in parsePrimaryExpr()
1151 SMLoc Loc = getTok().getLoc(); in parsePrimaryExpr()
1152 int64_t IntVal = getTok().getIntVal(); in parsePrimaryExpr()
1154 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1158 StringRef IDVal = getTok().getString(); in parsePrimaryExpr()
1175 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1182 APFloat RealVal(APFloat::IEEEdouble(), getTok().getString()); in parsePrimaryExpr()
1185 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1195 EndLoc = Lexer.getTok().getEndLoc(); in parsePrimaryExpr()
1288 TokError("invalid variant on expression '" + getTok().getIdentifier() + in applyModifierToExpr()
1390 MCSymbolRefExpr::getVariantKindForName(getTok().getIdentifier()); in parseExpression()
1392 return TokError("invalid variant '" + getTok().getIdentifier() + "'"); in parseExpression()
1396 return TokError("invalid modifier '" + getTok().getIdentifier() + in parseExpression()
1430 EndLoc = getTok().getEndLoc(); in parseParenExprOfDepth()
1658 if (getTok().getString().empty() || getTok().getString().front() == '\r' || in parseStatement()
1659 getTok().getString().front() == '\n') in parseStatement()
1665 AsmToken ID = getTok(); in parseStatement()
1673 LocalLabelVal = getTok().getIntVal(); in parseStatement()
1681 IDVal = getTok().getString(); in parseStatement()
1807 if (getTok().is(AsmToken::Hash)) { in parseStatement()
1815 if (getTok().is(AsmToken::EndOfStatement)) { in parseStatement()
1871 SMLoc StartTokLoc = getTok().getLoc(); in parseStatement()
1881 if (TPDirectiveReturn && StartTokLoc != getTok().getLoc()) in parseStatement()
1884 if (!TPDirectiveReturn || StartTokLoc != getTok().getLoc()) in parseStatement()
2266 assert(getTok().is(AsmToken::Integer) && in parseCppHashLineFilenameComment()
2268 int64_t LineNumber = getTok().getIntVal(); in parseCppHashLineFilenameComment()
2270 assert(getTok().is(AsmToken::String) && in parseCppHashLineFilenameComment()
2272 StringRef Filename = getTok().getString(); in parseCppHashLineFilenameComment()
2571 MA.push_back(getTok()); in parseMacroArgument()
2597 MA.push_back(getTok()); in parseMacroArgument()
2748 if (expandMacro(OS, Body, M->Parameters, A, true, getTok().getLoc())) in handleMacroEntry()
2761 NameLoc, CurBuffer, getTok().getLoc(), TheCondStack.size()); in handleMacroEntry()
2835 StringRef(PrefixLoc.getPointer(), getTok().getIdentifier().size() + 1); in parseIdentifier()
2843 Res = getTok().getIdentifier(); in parseIdentifier()
2863 if (check(getTok().isNot(AsmToken::String), "expected string")) in parseEscapedString()
2867 StringRef Str = getTok().getStringContents(); in parseEscapedString()
2946 SMLoc OffsetLoc = Lexer.getTok().getLoc(); in parseDirectiveReloc()
2958 check(getTok().isNot(AsmToken::Identifier), "expected relocation name"))) in parseDirectiveReloc()
2961 SMLoc NameLoc = Lexer.getTok().getLoc(); in parseDirectiveReloc()
2962 StringRef Name = Lexer.getTok().getIdentifier(); in parseDirectiveReloc()
3014 if (Asm.getTok().isNot(AsmToken::Integer) && in parseHexOcta()
3015 Asm.getTok().isNot(AsmToken::BigNum)) in parseHexOcta()
3017 SMLoc ExprLoc = Asm.getTok().getLoc(); in parseHexOcta()
3018 APInt IntValue = Asm.getTok().getAPIntVal(); in parseHexOcta()
3075 StringRef IDVal = getTok().getString(); in parseRealValue()
3152 SizeLoc = getTok().getLoc(); in parseDirectiveFill()
3156 ExprLoc = getTok().getLoc(); in parseDirectiveFill()
3219 if (getTok().isNot(AsmToken::Comma)) { in parseDirectiveAlign()
3235 if (IsPow2 && (ValueSize == 1) && getTok().is(AsmToken::EndOfStatement)) { in parseDirectiveAlign()
3304 FileNumber = getTok().getIntVal(); in parseDirectiveFile()
3315 if (check(getTok().isNot(AsmToken::String), in parseDirectiveFile()
3343 if (check(getTok().isNot(AsmToken::Identifier), in parseDirectiveFile()
3357 check(getTok().isNot(AsmToken::String), in parseDirectiveFile()
3442 SMLoc Loc = getTok().getLoc(); in parseDirectiveLoc()
3452 LineNumber = getTok().getIntVal(); in parseDirectiveLoc()
3460 ColumnPos = getTok().getIntVal(); in parseDirectiveLoc()
3472 SMLoc Loc = getTok().getLoc(); in parseDirectiveLoc()
3483 Loc = getTok().getLoc(); in parseDirectiveLoc()
3500 Loc = getTok().getLoc(); in parseDirectiveLoc()
3540 SMLoc FileNumberLoc = getTok().getLoc(); in parseDirectiveCVFile()
3549 check(getTok().isNot(AsmToken::String), in parseDirectiveCVFile()
3554 if (check(getTok().isNot(AsmToken::String), in parseDirectiveCVFile()
3603 SMLoc FunctionIdLoc = getTok().getLoc(); in parseDirectiveCVFuncId()
3626 SMLoc FunctionIdLoc = getTok().getLoc(); in parseDirectiveCVInlineSiteId()
3639 getTok().getIdentifier() != "within"), in parseDirectiveCVInlineSiteId()
3650 getTok().getIdentifier() != "inlined_at"), in parseDirectiveCVInlineSiteId()
3663 IACol = getTok().getIntVal(); in parseDirectiveCVInlineSiteId()
3686 SMLoc DirectiveLoc = getTok().getLoc(); in parseDirectiveCVLoc()
3694 LineNumber = getTok().getIntVal(); in parseDirectiveCVLoc()
3702 ColumnPos = getTok().getIntVal(); in parseDirectiveCVLoc()
3713 SMLoc Loc = getTok().getLoc(); in parseDirectiveCVLoc()
3719 Loc = getTok().getLoc(); in parseDirectiveCVLoc()
3750 SMLoc Loc = getTok().getLoc(); in parseDirectiveCVLinetable()
3774 SMLoc Loc = getTok().getLoc(); in parseDirectiveCVInlineLinetable()
4292 AsmToken EndToken, StartToken = getTok(); in parseDirectiveMacro()
4307 if (getTok().getIdentifier() == ".endm" || in parseDirectiveMacro()
4308 getTok().getIdentifier() == ".endmacro") { in parseDirectiveMacro()
4310 EndToken = getTok(); in parseDirectiveMacro()
4320 } else if (getTok().getIdentifier() == ".macro") { in parseDirectiveMacro()
4539 SMLoc Loc = getTok().getLoc(); in parseDirectiveBundleLock()
4714 SMLoc Loc = getTok().getLoc(); in parseDirectiveSymbolAttribute()
4833 SMLoc IncludeLoc = getTok().getLoc(); in parseDirectiveInclude()
4835 if (check(getTok().isNot(AsmToken::String), in parseDirectiveInclude()
4838 check(getTok().isNot(AsmToken::EndOfStatement), in parseDirectiveInclude()
4854 SMLoc IncbinLoc = getTok().getLoc(); in parseDirectiveIncbin()
4855 if (check(getTok().isNot(AsmToken::String), in parseDirectiveIncbin()
4866 if (getTok().isNot(AsmToken::Comma)) { in parseDirectiveIncbin()
4871 CountLoc = getTok().getLoc(); in parseDirectiveIncbin()
4993 StringRef String1 = getTok().getStringContents(); in parseDirectiveIfeqs()
5011 StringRef String2 = getTok().getStringContents(); in parseDirectiveIfeqs()
5134 Message = getTok().getStringContents(); in parseDirectiveError()
5157 Message = getTok().getStringContents(); in parseDirectiveWarning()
5347 AsmToken EndToken, StartToken = getTok(); in parseMacroLikeBody()
5358 (getTok().getIdentifier() == ".rep" || in parseMacroLikeBody()
5359 getTok().getIdentifier() == ".rept" || in parseMacroLikeBody()
5360 getTok().getIdentifier() == ".irp" || in parseMacroLikeBody()
5361 getTok().getIdentifier() == ".irpc")) { in parseMacroLikeBody()
5366 if (Lexer.is(AsmToken::Identifier) && getTok().getIdentifier() == ".endr") { in parseMacroLikeBody()
5368 EndToken = getTok(); in parseMacroLikeBody()
5371 printError(getTok().getLoc(), in parseMacroLikeBody()
5403 DirectiveLoc, CurBuffer, getTok().getLoc(), TheCondStack.size()); in instantiateMacroLikeBody()
5416 SMLoc CountLoc = getTok().getLoc(); in parseDirectiveRept()
5441 if (expandMacro(OS, M->Body, None, None, false, getTok().getLoc())) in parseDirectiveRept()
5474 if (expandMacro(OS, M->Body, Parameter, Arg, true, getTok().getLoc())) in parseDirectiveIrp()
5519 if (expandMacro(OS, M->Body, Parameter, Arg, true, getTok().getLoc())) in parseDirectiveIrpc()
5574 const AsmToken StrTok = getTok(); in parseDirectivePrint()
5883 SMLoc EqualLoc = Parser.getTok().getLoc(); in parseAssignmentExpression()