Lines Matching refs:TokError
181 return TokError("expected identifier in directive"); in ParseDirectiveSymbolAttribute()
197 return TokError("unexpected token in directive"); in ParseDirectiveSymbolAttribute()
224 return TokError("expected identifier in directive"); in ParseDirectiveSize()
228 return TokError("unexpected token in directive"); in ParseDirectiveSize()
236 return TokError("unexpected token in directive"); in ParseDirectiveSize()
394 return TokError(".popsection without corresponding .pushsection"); in ParseDirectivePopSection()
410 return TokError("expected '@<type>', '%<type>' or \"<type>\""); in maybeParseSectionType()
412 return TokError("expected '%<type>' or \"<type>\""); in maybeParseSectionType()
420 return TokError("expected identifier in directive"); in maybeParseSectionType()
426 return TokError("expected the entry size"); in parseMergeSize()
431 return TokError("entry size must be positive"); in parseMergeSize()
438 return TokError("expected group name"); in parseGroup()
444 return TokError("invalid group name"); in parseGroup()
450 return TokError("invalid linkage"); in parseGroup()
452 return TokError("Linkage must be 'comdat'"); in parseGroup()
463 return TokError("expected linked-to symbol"); in parseLinkedToSym()
473 return TokError("invalid linked-to symbol"); in parseLinkedToSym()
488 return TokError("expected identifier in directive"); in maybeParseUniqueID()
490 return TokError("expected 'unique'"); in maybeParseUniqueID()
492 return TokError("expected commma"); in maybeParseUniqueID()
497 return TokError("unique id must be positive"); in maybeParseUniqueID()
499 return TokError("unique id is too large"); in maybeParseUniqueID()
529 return TokError("expected identifier in directive"); in ParseSectionArguments()
570 return TokError("expected string in directive"); in ParseSectionArguments()
580 return TokError("unknown flag"); in ParseSectionArguments()
586 return TokError("Section cannot specifiy a group name while also acting " in ParseSectionArguments()
595 return TokError("Mergeable section must specify the type"); in ParseSectionArguments()
597 return TokError("Group section must specify the type"); in ParseSectionArguments()
599 return TokError("unexpected token in directive"); in ParseSectionArguments()
617 return TokError("unexpected token in directive"); in ParseSectionArguments()
665 return TokError("unknown section type"); in ParseSectionArguments()
721 return TokError(".previous without corresponding .section"); in ParseDirectivePrevious()
749 return TokError("expected identifier in directive"); in ParseDirectiveType()
767 return TokError("expected STT_<TYPE_IN_UPPER_CASE>, '#<type>', " in ParseDirectiveType()
770 return TokError("expected STT_<TYPE_IN_UPPER_CASE>, '#<type>', '@<type>', " in ParseDirectiveType()
782 return TokError("expected symbol type in directive"); in ParseDirectiveType()
789 return TokError("unexpected token in '.type' directive"); in ParseDirectiveType()
801 return TokError("unexpected token in '.ident' directive"); in ParseDirectiveIdent()
808 return TokError("unexpected token in '.ident' directive"); in ParseDirectiveIdent()
820 return TokError("expected identifier in directive"); in ParseDirectiveSymver()
823 return TokError("expected a comma"); in ParseDirectiveSymver()
835 return TokError("expected identifier in directive"); in ParseDirectiveSymver()
838 return TokError("expected a '@' in the name"); in ParseDirectiveSymver()
842 return TokError("expected 'remove'"); in ParseDirectiveSymver()
856 return TokError("unexpected token in '.version' directive"); in ParseDirectiveVersion()
883 return TokError("expected identifier in directive"); in ParseDirectiveWeakref()
886 return TokError("expected a comma"); in ParseDirectiveWeakref()
892 return TokError("expected identifier in directive"); in ParseDirectiveWeakref()
910 return TokError("unexpected token in directive"); in ParseDirectiveSubsection()