Lines Matching refs:TokError
182 return TokError("expected identifier"); in ParseDirectiveSymbolAttribute()
198 return TokError("expected comma"); in ParseDirectiveSymbolAttribute()
225 return TokError("expected identifier"); in ParseDirectiveSize()
229 return TokError("expected comma"); in ParseDirectiveSize()
237 return TokError("unexpected token"); in ParseDirectiveSize()
408 return TokError(".popsection without corresponding .pushsection"); in ParseDirectivePopSection()
424 return TokError("expected '@<type>', '%<type>' or \"<type>\""); in maybeParseSectionType()
426 return TokError("expected '%<type>' or \"<type>\""); in maybeParseSectionType()
434 return TokError("expected identifier"); in maybeParseSectionType()
440 return TokError("expected the entry size"); in parseMergeSize()
445 return TokError("entry size must be positive"); in parseMergeSize()
452 return TokError("expected group name"); in parseGroup()
458 return TokError("invalid group name"); in parseGroup()
464 return TokError("invalid linkage"); in parseGroup()
466 return TokError("Linkage must be 'comdat'"); in parseGroup()
477 return TokError("expected linked-to symbol"); in parseLinkedToSym()
487 return TokError("invalid linked-to symbol"); in parseLinkedToSym()
502 return TokError("expected identifier"); in maybeParseUniqueID()
504 return TokError("expected 'unique'"); in maybeParseUniqueID()
506 return TokError("expected commma"); in maybeParseUniqueID()
511 return TokError("unique id must be positive"); in maybeParseUniqueID()
513 return TokError("unique id is too large"); in maybeParseUniqueID()
543 return TokError("expected identifier"); in ParseSectionArguments()
584 return TokError("expected string"); in ParseSectionArguments()
594 return TokError("unknown flag"); in ParseSectionArguments()
600 return TokError("Section cannot specifiy a group name while also acting " in ParseSectionArguments()
609 return TokError("Mergeable section must specify the type"); in ParseSectionArguments()
611 return TokError("Group section must specify the type"); in ParseSectionArguments()
613 return TokError("expected end of directive"); in ParseSectionArguments()
631 return TokError("expected end of directive"); in ParseSectionArguments()
681 return TokError("unknown section type"); in ParseSectionArguments()
737 return TokError(".previous without corresponding .section"); in ParseDirectivePrevious()
765 return TokError("expected identifier"); in ParseDirectiveType()
783 return TokError("expected STT_<TYPE_IN_UPPER_CASE>, '#<type>', " in ParseDirectiveType()
786 return TokError("expected STT_<TYPE_IN_UPPER_CASE>, '#<type>', '@<type>', " in ParseDirectiveType()
798 return TokError("expected symbol type"); in ParseDirectiveType()
805 return TokError("expected end of directive"); in ParseDirectiveType()
817 return TokError("expected string"); in ParseDirectiveIdent()
824 return TokError("expected end of directive"); in ParseDirectiveIdent()
836 return TokError("expected identifier"); in ParseDirectiveSymver()
839 return TokError("expected a comma"); in ParseDirectiveSymver()
851 return TokError("expected identifier"); in ParseDirectiveSymver()
854 return TokError("expected a '@' in the name"); in ParseDirectiveSymver()
858 return TokError("expected 'remove'"); in ParseDirectiveSymver()
872 return TokError("expected string"); in ParseDirectiveVersion()
899 return TokError("expected identifier"); in ParseDirectiveWeakref()
902 return TokError("expected a comma"); in ParseDirectiveWeakref()
908 return TokError("expected identifier"); in ParseDirectiveWeakref()
926 return TokError("expected end of directive"); in ParseDirectiveSubsection()