parent
f059642c50
commit
dbd708d287
|
@ -80,6 +80,7 @@ public:
|
|||
/// @name MCAsmParser Interface
|
||||
/// {
|
||||
|
||||
virtual SourceMgr &getSourceManager() { return SrcMgr; }
|
||||
virtual MCAsmLexer &getLexer() { return Lexer; }
|
||||
virtual MCContext &getContext() { return Ctx; }
|
||||
virtual MCStreamer &getStreamer() { return Out; }
|
||||
|
|
|
@ -20,6 +20,7 @@ class MCContext;
|
|||
class MCExpr;
|
||||
class MCStreamer;
|
||||
class SMLoc;
|
||||
class SourceMgr;
|
||||
class StringRef;
|
||||
class Twine;
|
||||
|
||||
|
@ -42,6 +43,8 @@ public:
|
|||
StringRef Directive,
|
||||
DirectiveHandler Handler) = 0;
|
||||
|
||||
virtual SourceMgr &getSourceManager() = 0;
|
||||
|
||||
virtual MCAsmLexer &getLexer() = 0;
|
||||
|
||||
virtual MCContext &getContext() = 0;
|
||||
|
|
|
@ -41,6 +41,7 @@ public:
|
|||
MCContext &getContext() { return getParser().getContext(); }
|
||||
MCAsmLexer &getLexer() { return getParser().getLexer(); }
|
||||
MCAsmParser &getParser() { return *Parser; }
|
||||
SourceMgr &getSourceManager() { return getParser().getSourceManager(); }
|
||||
MCStreamer &getStreamer() { return getParser().getStreamer(); }
|
||||
void Warning(SMLoc L, const Twine &Msg) {
|
||||
return getParser().Warning(L, Msg);
|
||||
|
|
Loading…
Reference in New Issue