22 template <
bool (XCOFFAsmParser::*HandlerMethod)(StringRef, SMLoc)>
25 std::make_pair(
this, HandleDirective<XCOFFAsmParser, HandlerMethod>);
31 XCOFFAsmParser() =
default;
39 addDirectiveHandler<&XCOFFAsmParser::ParseDirectiveCSect>(
".csect");
Generic assembler lexer interface, for use by target specific assembly lexers.
Generic interface for extending the MCAsmParser, which is implemented by target and object file assem...
virtual void Initialize(MCAsmParser &Parser)
Initialize the extension for parsing using the given Parser.
MCAsmParser & getParser()
Generic assembler parser interface, for use by target specific assembly parsers.
std::pair< MCAsmParserExtension *, DirectiveHandler > ExtensionDirectiveHandler
virtual MCAsmLexer & getLexer()=0
virtual void addDirectiveHandler(StringRef Directive, ExtensionDirectiveHandler Handler)=0
Represents a location in source code.
StringRef - Represent a constant reference to a string, i.e.
This is an optimization pass for GlobalISel generic memory operations.
MCAsmParserExtension * createXCOFFAsmParser()
void report_fatal_error(Error Err, bool gen_crash_diag=true)
Report a serious error, calling any installed error handler.