Lines Matching refs:Directive
30 /// \brief Implementation of directive handling which is shared across all
34 void addDirectiveHandler(StringRef Directive) {
37 getParser().addDirectiveHandler(Directive, Handler);
199 // Named Section Directive
369 // Darwin silently ignores the .ident directive.
388 return TokError("unexpected token in section switching directive");
401 // section, then just issuing the section switch directive will not realign
416 return TokError("expected identifier in directive");
422 return TokError("unexpected token in '.desc' directive");
430 return TokError("unexpected token in '.desc' directive");
454 return TokError("expected identifier in .indirect_symbol directive");
460 return TokError("non-local symbol required in directive");
466 return TokError("unexpected token in '.indirect_symbol' directive");
475 bool DarwinAsmParser::parseDirectiveDumpOrLoad(StringRef Directive,
477 bool IsDump = Directive == ".dump";
479 return TokError("expected string in '.dump' or '.load' directive");
484 return TokError("unexpected token in '.dump' or '.load' directive");
491 return Warning(IDLoc, "ignoring directive .dump for now");
493 return Warning(IDLoc, "ignoring directive .load for now");
502 return TokError("expected string in '" + Twine(IDVal) + "' directive");
515 return TokError("unexpected token in '" + Twine(IDVal) + "' directive");
528 return TokError("expected identifier in directive");
534 return TokError("unexpected token in '.lsym' directive");
542 return TokError("unexpected token in '.lsym' directive");
546 // We don't currently support this directive.
550 return TokError("directive '.lsym' is unsupported");
560 return Error(Loc, "expected identifier after '.section' directive");
564 return TokError("unexpected token in '.section' directive");
576 return TokError("unexpected token in '.section' directive");
658 return TokError("unexpected token in '.secure_log_unique' directive");
697 return TokError("unexpected token in '.secure_log_reset' directive");
710 return TokError("unexpected token in '.subsections_via_symbols' directive");
725 return TokError("expected identifier in directive");
731 return TokError("unexpected token in directive");
749 return TokError("unexpected token in '.tbss' directive");
754 return Error(SizeLoc, "invalid '.tbss' directive size, can't be less than"
780 return TokError("expected segment name after '.zerofill' directive");
783 return TokError("unexpected token in directive");
789 "directive");
802 return TokError("unexpected token in directive");
808 return TokError("expected identifier in directive");
814 return TokError("unexpected token in directive");
832 return TokError("unexpected token in '.zerofill' directive");
837 return Error(SizeLoc, "invalid '.zerofill' directive size, can't be less "
840 // NOTE: The alignment in the directive is a power of 2 value, the assembler
844 return Error(Pow2AlignmentLoc, "invalid '.zerofill' directive alignment, "
872 return TokError("expected region type after '.data_region' directive");
879 return Error(Loc, "unknown region type in '.data_region' directive");
890 return TokError("unexpected token in '.end_data_region' directive");
900 bool DarwinAsmParser::parseVersionMin(StringRef Directive, SMLoc Loc) {
902 int Kind = StringSwitch<int>(Directive)
946 Warning(Loc, Directive + " should only be used for " +
950 Warning(Loc, "overriding previous version_min directive");