LLVM API Documentation

Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes
llvm::MCAsmParserExtension Class Reference

Generic interface for extending the MCAsmParser, which is implemented by target and object file assembly parser implementations. More...

#include <MCAsmParserExtension.h>

Inheritance diagram for llvm::MCAsmParserExtension:
Inheritance graph
[legend]
Collaboration diagram for llvm::MCAsmParserExtension:
Collaboration graph
[legend]

List of all members.

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
MCContextgetContext ()
MCAsmLexergetLexer ()
MCAsmParsergetParser ()
SourceMgrgetSourceManager ()
MCStreamergetStreamer ()
bool Warning (SMLoc L, const Twine &Msg)
bool Error (SMLoc L, const Twine &Msg)
bool TokError (const Twine &Msg)
const AsmTokenLex ()
const AsmTokengetTok ()
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

Detailed Description

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.


Constructor & Destructor Documentation

MCAsmParserExtension::MCAsmParserExtension ( ) [protected]

Definition at line 13 of file MCAsmParserExtension.cpp.

Definition at line 17 of file MCAsmParserExtension.cpp.


Member Function Documentation

Definition at line 62 of file MCAsmParserExtension.h.

References llvm::MCAsmParser::Error(), and getParser().

Definition at line 54 of file MCAsmParserExtension.h.

References llvm::MCAsmParser::getContext(), and getParser().

Definition at line 55 of file MCAsmParserExtension.h.

References llvm::MCAsmParser::getLexer(), and getParser().

Definition at line 57 of file MCAsmParserExtension.h.

References getParser(), and llvm::MCAsmParser::getSourceManager().

Definition at line 58 of file MCAsmParserExtension.h.

References getParser(), and llvm::MCAsmParser::getStreamer().

Definition at line 71 of file MCAsmParserExtension.h.

References getParser(), and llvm::MCAsmParser::getTok().

template<typename T , bool(T::*)(StringRef, SMLoc) Handler>
static bool llvm::MCAsmParserExtension::HandleDirective ( MCAsmParserExtension Target,
StringRef  Directive,
SMLoc  DirectiveLoc 
) [inline, static, protected]

Definition at line 34 of file MCAsmParserExtension.h.

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().

Definition at line 69 of file MCAsmParserExtension.h.

References getParser(), and llvm::MCAsmParser::Lex().

Definition at line 65 of file MCAsmParserExtension.h.

References getParser(), and llvm::MCAsmParser::TokError().

Definition at line 59 of file MCAsmParserExtension.h.

References getParser(), and llvm::MCAsmParser::Warning().


Member Data Documentation

Definition at line 41 of file MCAsmParserExtension.h.

Referenced by HasBracketExpressions().


The documentation for this class was generated from the following files: