Lines Matching refs:TokError

183         return TokError("expected identifier in directive");  in ParseDirectiveSymbolAttribute()
193 return TokError("unexpected token in directive"); in ParseDirectiveSymbolAttribute()
220 return TokError("expected identifier in directive"); in ParseDirectiveSize()
224 return TokError("unexpected token in directive"); in ParseDirectiveSize()
232 return TokError("unexpected token in directive"); in ParseDirectiveSize()
383 return TokError(".popsection without corresponding .pushsection"); in ParseDirectivePopSection()
399 return TokError("expected '@<type>', '%<type>' or \"<type>\""); in maybeParseSectionType()
401 return TokError("expected '%<type>' or \"<type>\""); in maybeParseSectionType()
409 return TokError("expected identifier in directive"); in maybeParseSectionType()
415 return TokError("expected the entry size"); in parseMergeSize()
420 return TokError("entry size must be positive"); in parseMergeSize()
427 return TokError("expected group name"); in parseGroup()
433 return TokError("invalid group name"); in parseGroup()
439 return TokError("invalid linkage"); in parseGroup()
441 return TokError("Linkage must be 'comdat'"); in parseGroup()
449 return TokError("expected linked-to symbol"); in parseLinkedToSym()
459 return TokError("invalid linked-to symbol"); in parseLinkedToSym()
474 return TokError("expected identifier in directive"); in maybeParseUniqueID()
476 return TokError("expected 'unique'"); in maybeParseUniqueID()
478 return TokError("expected commma"); in maybeParseUniqueID()
483 return TokError("unique id must be positive"); in maybeParseUniqueID()
485 return TokError("unique id is too large"); in maybeParseUniqueID()
497 return TokError("expected identifier in directive"); in ParseSectionArguments()
540 return TokError("expected string in directive"); in ParseSectionArguments()
549 return TokError("unknown flag"); in ParseSectionArguments()
555 return TokError("Section cannot specifiy a group name while also acting " in ParseSectionArguments()
564 return TokError("Mergeable section must specify the type"); in ParseSectionArguments()
566 return TokError("Group section must specify the type"); in ParseSectionArguments()
568 return TokError("unexpected token in directive"); in ParseSectionArguments()
586 return TokError("unexpected token in directive"); in ParseSectionArguments()
632 return TokError("unknown section type"); in ParseSectionArguments()
684 return TokError(".previous without corresponding .section"); in ParseDirectivePrevious()
712 return TokError("expected identifier in directive"); in ParseDirectiveType()
730 return TokError("expected STT_<TYPE_IN_UPPER_CASE>, '#<type>', " in ParseDirectiveType()
733 return TokError("expected STT_<TYPE_IN_UPPER_CASE>, '#<type>', '@<type>', " in ParseDirectiveType()
745 return TokError("expected symbol type in directive"); in ParseDirectiveType()
752 return TokError("unexpected token in '.type' directive"); in ParseDirectiveType()
764 return TokError("unexpected token in '.ident' directive"); in ParseDirectiveIdent()
771 return TokError("unexpected token in '.ident' directive"); in ParseDirectiveIdent()
783 return TokError("expected identifier in directive"); in ParseDirectiveSymver()
786 return TokError("expected a comma"); in ParseDirectiveSymver()
799 return TokError("expected identifier in directive"); in ParseDirectiveSymver()
802 return TokError("expected a '@' in the name"); in ParseDirectiveSymver()
813 return TokError("unexpected token in '.version' directive"); in ParseDirectiveVersion()
840 return TokError("expected identifier in directive"); in ParseDirectiveWeakref()
843 return TokError("expected a comma"); in ParseDirectiveWeakref()
849 return TokError("expected identifier in directive"); in ParseDirectiveWeakref()
867 return TokError("unexpected token in directive"); in ParseDirectiveSubsection()