if (!strcmp(IDVal, ".zerofill"))
return ParseDirectiveDarwinZerofill();
+ if (!strcmp(IDVal, ".subsections_via_symbols"))
+ return ParseDirectiveDarwinSubsectionsViaSymbols();
+
Warning(IDLoc, "ignoring directive for now");
EatToEndOfStatement();
return false;
return false;
}
+
+/// ParseDirectiveDarwinSubsectionsViaSymbols
+/// ::= .subsections_via_symbols
+bool AsmParser::ParseDirectiveDarwinSubsectionsViaSymbols() {
+ if (Lexer.isNot(asmtok::EndOfStatement))
+ return TokError("unexpected token in '.subsections_via_symbols' directive");
+
+ Lexer.Lex();
+
+ Out.SubsectionsViaSymbols();
+
+ return false;
+}