Lines Matching full:directive
40 /// Implementation of directive handling which is shared across all
44 void addDirectiveHandler(StringRef Directive) { in addDirectiveHandler() argument
47 getParser().addDirectiveHandler(Directive, Handler); in addDirectiveHandler()
219 // Named Section Directive
436 // Darwin silently ignores the .ident directive. in parseSectionDirectiveIdent()
446 bool parseWatchOSVersionMin(StringRef Directive, SMLoc Loc) { in parseWatchOSVersionMin() argument
447 return parseVersionMin(Directive, Loc, MCVM_WatchOSVersionMin); in parseWatchOSVersionMin()
449 bool parseTvOSVersionMin(StringRef Directive, SMLoc Loc) { in parseTvOSVersionMin() argument
450 return parseVersionMin(Directive, Loc, MCVM_TvOSVersionMin); in parseTvOSVersionMin()
452 bool parseIOSVersionMin(StringRef Directive, SMLoc Loc) { in parseIOSVersionMin() argument
453 return parseVersionMin(Directive, Loc, MCVM_IOSVersionMin); in parseIOSVersionMin()
455 bool parseMacOSXVersionMin(StringRef Directive, SMLoc Loc) { in parseMacOSXVersionMin() argument
456 return parseVersionMin(Directive, Loc, MCVM_OSXVersionMin); in parseMacOSXVersionMin()
459 bool parseBuildVersion(StringRef Directive, SMLoc Loc);
460 bool parseVersionMin(StringRef Directive, SMLoc Loc, MCVersionMinType Type);
467 void checkVersion(StringRef Directive, StringRef Arg, SMLoc Loc,
469 bool parseDirectiveCGProfile(StringRef Directive, SMLoc Loc);
478 return TokError("unexpected token in section switching directive"); in parseSectionSwitch()
491 // section, then just issuing the section switch directive will not realign in parseSectionSwitch()
506 return TokError("expected identifier in directive"); in parseDirectiveAltEntry()
526 return TokError("expected identifier in directive"); in parseDirectiveDesc()
532 return TokError("unexpected token in '.desc' directive"); in parseDirectiveDesc()
540 return TokError("unexpected token in '.desc' directive"); in parseDirectiveDesc()
565 return TokError("expected identifier in .indirect_symbol directive"); in parseDirectiveIndirectSymbol()
571 return TokError("non-local symbol required in directive"); in parseDirectiveIndirectSymbol()
577 return TokError("unexpected token in '.indirect_symbol' directive"); in parseDirectiveIndirectSymbol()
586 bool DarwinAsmParser::parseDirectiveDumpOrLoad(StringRef Directive, in parseDirectiveDumpOrLoad() argument
588 bool IsDump = Directive == ".dump"; in parseDirectiveDumpOrLoad()
590 return TokError("expected string in '.dump' or '.load' directive"); in parseDirectiveDumpOrLoad()
595 return TokError("unexpected token in '.dump' or '.load' directive"); in parseDirectiveDumpOrLoad()
602 return Warning(IDLoc, "ignoring directive .dump for now"); in parseDirectiveDumpOrLoad()
604 return Warning(IDLoc, "ignoring directive .load for now"); in parseDirectiveDumpOrLoad()
613 return TokError("expected string in '" + Twine(IDVal) + "' directive"); in parseDirectiveLinkerOption()
625 return TokError("unexpected token in '" + Twine(IDVal) + "' directive"); in parseDirectiveLinkerOption()
638 return TokError("expected identifier in directive"); in parseDirectiveLsym()
644 return TokError("unexpected token in '.lsym' directive"); in parseDirectiveLsym()
652 return TokError("unexpected token in '.lsym' directive"); in parseDirectiveLsym()
656 // We don't currently support this directive. in parseDirectiveLsym()
660 return TokError("directive '.lsym' is unsupported"); in parseDirectiveLsym()
670 return Error(Loc, "expected identifier after '.section' directive"); in parseDirectiveSection()
674 return TokError("unexpected token in '.section' directive"); in parseDirectiveSection()
686 return TokError("unexpected token in '.section' directive"); in parseDirectiveSection()
764 return TokError("unexpected token in '.secure_log_unique' directive"); in parseDirectiveSecureLogUnique()
803 return TokError("unexpected token in '.secure_log_reset' directive"); in parseDirectiveSecureLogReset()
816 return TokError("unexpected token in '.subsections_via_symbols' directive"); in parseDirectiveSubsectionsViaSymbols()
831 return TokError("expected identifier in directive"); in parseDirectiveTBSS()
837 return TokError("unexpected token in directive"); in parseDirectiveTBSS()
855 return TokError("unexpected token in '.tbss' directive"); in parseDirectiveTBSS()
860 return Error(SizeLoc, "invalid '.tbss' directive size, can't be less than" in parseDirectiveTBSS()
886 return TokError("expected segment name after '.zerofill' directive"); in parseDirectiveZerofill()
889 return TokError("unexpected token in directive"); in parseDirectiveZerofill()
896 "directive"); in parseDirectiveZerofill()
910 return TokError("unexpected token in directive"); in parseDirectiveZerofill()
916 return TokError("expected identifier in directive"); in parseDirectiveZerofill()
922 return TokError("unexpected token in directive"); in parseDirectiveZerofill()
940 return TokError("unexpected token in '.zerofill' directive"); in parseDirectiveZerofill()
945 return Error(SizeLoc, "invalid '.zerofill' directive size, can't be less " in parseDirectiveZerofill()
948 // NOTE: The alignment in the directive is a power of 2 value, the assembler in parseDirectiveZerofill()
952 return Error(Pow2AlignmentLoc, "invalid '.zerofill' directive alignment, " in parseDirectiveZerofill()
980 return TokError("expected region type after '.data_region' directive"); in parseDirectiveDataRegion()
987 return Error(Loc, "unknown region type in '.data_region' directive"); in parseDirectiveDataRegion()
998 return TokError("unexpected token in '.end_data_region' directive"); in parseDirectiveDataRegionEnd()
1091 void DarwinAsmParser::checkVersion(StringRef Directive, StringRef Arg, in checkVersion() argument
1095 Warning(Loc, Twine(Directive) + in checkVersion()
1100 Warning(Loc, "overriding previous version directive"); in checkVersion()
1121 bool DarwinAsmParser::parseVersionMin(StringRef Directive, SMLoc Loc, in parseVersionMin() argument
1134 return addErrorSuffix(Twine(" in '") + Directive + "' directive"); in parseVersionMin()
1137 checkVersion(Directive, StringRef(), Loc, ExpectedOS); in parseVersionMin()
1165 bool DarwinAsmParser::parseBuildVersion(StringRef Directive, SMLoc Loc) { in parseBuildVersion() argument
1196 return addErrorSuffix(" in '.build_version' directive"); in parseBuildVersion()
1200 checkVersion(Directive, PlatformName, Loc, ExpectedOS); in parseBuildVersion()