Lines Matching refs:Tok
151 } while (Tok.K != Eof); in parse()
158 Tok = Lex.lex(); in read()
161 Tok = Stack.back(); in read()
167 if (Tok.K != Identifier || Tok.Value.getAsInteger(10, *I)) in readAsInt()
174 if (Tok.K != Expected) in expect()
179 void unget() { Stack.push_back(Tok); } in unget()
183 switch (Tok.K) { in parseOne()
189 if (Tok.K != Identifier) { in parseOne()
202 bool IsDll = Tok.K == KwLibrary; // Check before parseName. in parseOne()
222 return createError("unknown directive: " + Tok.Value); in parseOne()
228 E.Name = std::string(Tok.Value); in parseExport()
230 if (Tok.K == Equal) { in parseExport()
232 if (Tok.K != Identifier) in parseExport()
233 return createError("identifier expected, but got " + Tok.Value); in parseExport()
235 E.Name = std::string(Tok.Value); in parseExport()
249 if (Tok.K == Identifier && Tok.Value[0] == '@') { in parseExport()
250 if (Tok.Value == "@") { in parseExport()
253 Tok.Value.getAsInteger(10, E.Ordinal); in parseExport()
254 } else if (Tok.Value.drop_front().getAsInteger(10, E.Ordinal)) { in parseExport()
263 if (Tok.K == KwNoname) { in parseExport()
270 if (Tok.K == KwData) { in parseExport()
274 if (Tok.K == KwConstant) { in parseExport()
278 if (Tok.K == KwPrivate) { in parseExport()
282 if (Tok.K == EqualEqual) { in parseExport()
284 E.ImportName = std::string(Tok.Value); in parseExport()
288 if (Tok.K == KwExportAs) { in parseExport()
290 if (Tok.K == Eof) in parseExport()
293 E.ExportAs = std::string(Tok.Value); in parseExport()
307 if (Tok.K != Comma) { in parseNumbers()
320 if (Tok.K == Identifier) { in parseName()
321 *Out = std::string(Tok.Value); in parseName()
328 if (Tok.K == KwBase) { in parseName()
343 if (Tok.K != Identifier) in parseVersion()
344 return createError("identifier expected, but got " + Tok.Value); in parseVersion()
346 std::tie(V1, V2) = Tok.Value.split('.'); in parseVersion()
348 return createError("integer expected, but got " + Tok.Value); in parseVersion()
352 return createError("integer expected, but got " + Tok.Value); in parseVersion()
357 Token Tok; member in llvm::object::Parser