LLVM API Documentation
Generic interface for extending the MCAsmParser, which is implemented by target and object file assembly parser implementations. More...
#include <MCAsmParserExtension.h>
Public Member Functions | |
virtual | ~MCAsmParserExtension () |
virtual void | Initialize (MCAsmParser &Parser) |
Initialize the extension for parsing using the given Parser . The extension should use the AsmParser interfaces to register its parsing routines. | |
MCAsmParser Proxy Interfaces | |
MCContext & | getContext () |
MCAsmLexer & | getLexer () |
MCAsmParser & | getParser () |
SourceMgr & | getSourceManager () |
MCStreamer & | getStreamer () |
bool | Warning (SMLoc L, const Twine &Msg) |
bool | Error (SMLoc L, const Twine &Msg) |
bool | TokError (const Twine &Msg) |
const AsmToken & | Lex () |
const AsmToken & | getTok () |
bool | HasBracketExpressions () const |
Protected Member Functions | |
MCAsmParserExtension () | |
Static Protected Member Functions | |
template<typename T , bool(T::*)(StringRef, SMLoc) Handler> | |
static bool | HandleDirective (MCAsmParserExtension *Target, StringRef Directive, SMLoc DirectiveLoc) |
Protected Attributes | |
bool | BracketExpressionsSupported |
Generic interface for extending the MCAsmParser, which is implemented by target and object file assembly parser implementations.
Definition at line 23 of file MCAsmParserExtension.h.
MCAsmParserExtension::MCAsmParserExtension | ( | ) | [protected] |
Definition at line 13 of file MCAsmParserExtension.cpp.
MCAsmParserExtension::~MCAsmParserExtension | ( | ) | [virtual] |
Definition at line 17 of file MCAsmParserExtension.cpp.
bool llvm::MCAsmParserExtension::Error | ( | SMLoc | L, |
const Twine & | Msg | ||
) | [inline] |
Definition at line 62 of file MCAsmParserExtension.h.
References llvm::MCAsmParser::Error(), and getParser().
MCContext& llvm::MCAsmParserExtension::getContext | ( | ) | [inline] |
Definition at line 54 of file MCAsmParserExtension.h.
References llvm::MCAsmParser::getContext(), and getParser().
MCAsmLexer& llvm::MCAsmParserExtension::getLexer | ( | ) | [inline] |
Definition at line 55 of file MCAsmParserExtension.h.
References llvm::MCAsmParser::getLexer(), and getParser().
MCAsmParser& llvm::MCAsmParserExtension::getParser | ( | ) | [inline] |
Definition at line 56 of file MCAsmParserExtension.h.
Referenced by Error(), getContext(), getLexer(), getSourceManager(), getStreamer(), getTok(), Lex(), TokError(), and Warning().
SourceMgr& llvm::MCAsmParserExtension::getSourceManager | ( | ) | [inline] |
Definition at line 57 of file MCAsmParserExtension.h.
References getParser(), and llvm::MCAsmParser::getSourceManager().
MCStreamer& llvm::MCAsmParserExtension::getStreamer | ( | ) | [inline] |
Definition at line 58 of file MCAsmParserExtension.h.
References getParser(), and llvm::MCAsmParser::getStreamer().
const AsmToken& llvm::MCAsmParserExtension::getTok | ( | ) | [inline] |
Definition at line 71 of file MCAsmParserExtension.h.
References getParser(), and llvm::MCAsmParser::getTok().
static bool llvm::MCAsmParserExtension::HandleDirective | ( | MCAsmParserExtension * | Target, |
StringRef | Directive, | ||
SMLoc | DirectiveLoc | ||
) | [inline, static, protected] |
Definition at line 34 of file MCAsmParserExtension.h.
bool llvm::MCAsmParserExtension::HasBracketExpressions | ( | ) | const [inline] |
Definition at line 73 of file MCAsmParserExtension.h.
References BracketExpressionsSupported.
void MCAsmParserExtension::Initialize | ( | MCAsmParser & | Parser | ) | [virtual] |
Initialize the extension for parsing using the given Parser
. The extension should use the AsmParser interfaces to register its parsing routines.
Definition at line 20 of file MCAsmParserExtension.cpp.
Referenced by llvm::MCAsmParser::setTargetParser().
const AsmToken& llvm::MCAsmParserExtension::Lex | ( | ) | [inline] |
Definition at line 69 of file MCAsmParserExtension.h.
References getParser(), and llvm::MCAsmParser::Lex().
bool llvm::MCAsmParserExtension::TokError | ( | const Twine & | Msg | ) | [inline] |
Definition at line 65 of file MCAsmParserExtension.h.
References getParser(), and llvm::MCAsmParser::TokError().
bool llvm::MCAsmParserExtension::Warning | ( | SMLoc | L, |
const Twine & | Msg | ||
) | [inline] |
Definition at line 59 of file MCAsmParserExtension.h.
References getParser(), and llvm::MCAsmParser::Warning().
Definition at line 41 of file MCAsmParserExtension.h.
Referenced by HasBracketExpressions().