mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-29 07:39:27 +00:00
MCAsmParser: Add getSourceManager().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108171 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a70282dcfa
commit
4e82bbb745
@ -80,6 +80,7 @@ public:
|
|||||||
/// @name MCAsmParser Interface
|
/// @name MCAsmParser Interface
|
||||||
/// {
|
/// {
|
||||||
|
|
||||||
|
virtual SourceMgr &getSourceManager() { return SrcMgr; }
|
||||||
virtual MCAsmLexer &getLexer() { return Lexer; }
|
virtual MCAsmLexer &getLexer() { return Lexer; }
|
||||||
virtual MCContext &getContext() { return Ctx; }
|
virtual MCContext &getContext() { return Ctx; }
|
||||||
virtual MCStreamer &getStreamer() { return Out; }
|
virtual MCStreamer &getStreamer() { return Out; }
|
||||||
|
@ -20,6 +20,7 @@ class MCContext;
|
|||||||
class MCExpr;
|
class MCExpr;
|
||||||
class MCStreamer;
|
class MCStreamer;
|
||||||
class SMLoc;
|
class SMLoc;
|
||||||
|
class SourceMgr;
|
||||||
class StringRef;
|
class StringRef;
|
||||||
class Twine;
|
class Twine;
|
||||||
|
|
||||||
@ -42,6 +43,8 @@ public:
|
|||||||
StringRef Directive,
|
StringRef Directive,
|
||||||
DirectiveHandler Handler) = 0;
|
DirectiveHandler Handler) = 0;
|
||||||
|
|
||||||
|
virtual SourceMgr &getSourceManager() = 0;
|
||||||
|
|
||||||
virtual MCAsmLexer &getLexer() = 0;
|
virtual MCAsmLexer &getLexer() = 0;
|
||||||
|
|
||||||
virtual MCContext &getContext() = 0;
|
virtual MCContext &getContext() = 0;
|
||||||
|
@ -41,6 +41,7 @@ public:
|
|||||||
MCContext &getContext() { return getParser().getContext(); }
|
MCContext &getContext() { return getParser().getContext(); }
|
||||||
MCAsmLexer &getLexer() { return getParser().getLexer(); }
|
MCAsmLexer &getLexer() { return getParser().getLexer(); }
|
||||||
MCAsmParser &getParser() { return *Parser; }
|
MCAsmParser &getParser() { return *Parser; }
|
||||||
|
SourceMgr &getSourceManager() { return getParser().getSourceManager(); }
|
||||||
MCStreamer &getStreamer() { return getParser().getStreamer(); }
|
MCStreamer &getStreamer() { return getParser().getStreamer(); }
|
||||||
void Warning(SMLoc L, const Twine &Msg) {
|
void Warning(SMLoc L, const Twine &Msg) {
|
||||||
return getParser().Warning(L, Msg);
|
return getParser().Warning(L, Msg);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user