Lines Matching full:directive

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