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()
728 return TokError(".previous without corresponding .section"); in ParseDirectivePrevious()
756 return TokError("expected identifier"); in ParseDirectiveType()
774 return TokError("expected STT_<TYPE_IN_UPPER_CASE>, '#<type>', " in ParseDirectiveType()
777 return TokError("expected STT_<TYPE_IN_UPPER_CASE>, '#<type>', '@<type>', " in ParseDirectiveType()
789 return TokError("expected symbol type"); in ParseDirectiveType()
796 return TokError("expected end of directive"); in ParseDirectiveType()
808 return TokError("expected string"); in ParseDirectiveIdent()
815 return TokError("expected end of directive"); in ParseDirectiveIdent()
827 return TokError("expected identifier"); in ParseDirectiveSymver()
830 return TokError("expected a comma"); in ParseDirectiveSymver()
842 return TokError("expected identifier"); in ParseDirectiveSymver()
845 return TokError("expected a '@' in the name"); in ParseDirectiveSymver()
849 return TokError("expected 'remove'"); in ParseDirectiveSymver()
863 return TokError("expected string"); in ParseDirectiveVersion()
890 return TokError("expected identifier"); in ParseDirectiveWeakref()
893 return TokError("expected a comma"); in ParseDirectiveWeakref()
899 return TokError("expected identifier"); in ParseDirectiveWeakref()
917 return TokError("expected end of directive"); in ParseDirectiveSubsection()