mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-19 00:14:20 +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
|
||||
/// {
|
||||
|
||||
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…
x
Reference in New Issue
Block a user