Lines Matching refs:Tok

148     } while (Tok.K != Eof);  in parse()
155 Tok = Lex.lex(); in read()
158 Tok = Stack.back(); in read()
164 if (Tok.K != Identifier || Tok.Value.getAsInteger(10, *I)) in readAsInt()
171 if (Tok.K != Expected) in expect()
176 void unget() { Stack.push_back(Tok); } in unget()
180 switch (Tok.K) { in parseOne()
186 if (Tok.K != Identifier) { in parseOne()
199 bool IsDll = Tok.K == KwLibrary; // Check before parseName. in parseOne()
219 return createError("unknown directive: " + Tok.Value); in parseOne()
225 E.Name = std::string(Tok.Value); in parseExport()
227 if (Tok.K == Equal) { in parseExport()
229 if (Tok.K != Identifier) in parseExport()
230 return createError("identifier expected, but got " + Tok.Value); in parseExport()
232 E.Name = std::string(Tok.Value); in parseExport()
246 if (Tok.K == Identifier && Tok.Value[0] == '@') { in parseExport()
247 if (Tok.Value == "@") { in parseExport()
250 Tok.Value.getAsInteger(10, E.Ordinal); in parseExport()
251 } else if (Tok.Value.drop_front().getAsInteger(10, E.Ordinal)) { in parseExport()
260 if (Tok.K == KwNoname) { in parseExport()
267 if (Tok.K == KwData) { in parseExport()
271 if (Tok.K == KwConstant) { in parseExport()
275 if (Tok.K == KwPrivate) { in parseExport()
279 if (Tok.K == EqualEqual) { in parseExport()
281 E.AliasTarget = std::string(Tok.Value); in parseExport()
297 if (Tok.K != Comma) { in parseNumbers()
310 if (Tok.K == Identifier) { in parseName()
311 *Out = std::string(Tok.Value); in parseName()
318 if (Tok.K == KwBase) { in parseName()
333 if (Tok.K != Identifier) in parseVersion()
334 return createError("identifier expected, but got " + Tok.Value); in parseVersion()
336 std::tie(V1, V2) = Tok.Value.split('.'); in parseVersion()
338 return createError("integer expected, but got " + Tok.Value); in parseVersion()
342 return createError("integer expected, but got " + Tok.Value); in parseVersion()
347 Token Tok; member in llvm::object::Parser