git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108171
91177308-0d34-0410-b5e6-
96231b3b80d8
/// @name MCAsmParser Interface
/// {
+ virtual SourceMgr &getSourceManager() { return SrcMgr; }
virtual MCAsmLexer &getLexer() { return Lexer; }
virtual MCContext &getContext() { return Ctx; }
virtual MCStreamer &getStreamer() { return Out; }
class MCExpr;
class MCStreamer;
class SMLoc;
+class SourceMgr;
class StringRef;
class Twine;
StringRef Directive,
DirectiveHandler Handler) = 0;
+ virtual SourceMgr &getSourceManager() = 0;
+
virtual MCAsmLexer &getLexer() = 0;
virtual MCContext &getContext() = 0;
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);