[llvm-commits] [llvm] r108171 - in /llvm/trunk/include/llvm/MC/MCParser: AsmParser.h MCAsmParser.h MCAsmParserExtension.h
Daniel Dunbar
daniel at zuster.org
Mon Jul 12 11:35:04 PDT 2010
Author: ddunbar
Date: Mon Jul 12 13:35:04 2010
New Revision: 108171
URL: http://llvm.org/viewvc/llvm-project?rev=108171&view=rev
Log:
MCAsmParser: Add getSourceManager().
Modified:
llvm/trunk/include/llvm/MC/MCParser/AsmParser.h
llvm/trunk/include/llvm/MC/MCParser/MCAsmParser.h
llvm/trunk/include/llvm/MC/MCParser/MCAsmParserExtension.h
Modified: llvm/trunk/include/llvm/MC/MCParser/AsmParser.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCParser/AsmParser.h?rev=108171&r1=108170&r2=108171&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCParser/AsmParser.h (original)
+++ llvm/trunk/include/llvm/MC/MCParser/AsmParser.h Mon Jul 12 13:35:04 2010
@@ -80,6 +80,7 @@
/// @name MCAsmParser Interface
/// {
+ virtual SourceMgr &getSourceManager() { return SrcMgr; }
virtual MCAsmLexer &getLexer() { return Lexer; }
virtual MCContext &getContext() { return Ctx; }
virtual MCStreamer &getStreamer() { return Out; }
Modified: llvm/trunk/include/llvm/MC/MCParser/MCAsmParser.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCParser/MCAsmParser.h?rev=108171&r1=108170&r2=108171&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCParser/MCAsmParser.h (original)
+++ llvm/trunk/include/llvm/MC/MCParser/MCAsmParser.h Mon Jul 12 13:35:04 2010
@@ -20,6 +20,7 @@
class MCExpr;
class MCStreamer;
class SMLoc;
+class SourceMgr;
class StringRef;
class Twine;
@@ -42,6 +43,8 @@
StringRef Directive,
DirectiveHandler Handler) = 0;
+ virtual SourceMgr &getSourceManager() = 0;
+
virtual MCAsmLexer &getLexer() = 0;
virtual MCContext &getContext() = 0;
Modified: llvm/trunk/include/llvm/MC/MCParser/MCAsmParserExtension.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCParser/MCAsmParserExtension.h?rev=108171&r1=108170&r2=108171&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCParser/MCAsmParserExtension.h (original)
+++ llvm/trunk/include/llvm/MC/MCParser/MCAsmParserExtension.h Mon Jul 12 13:35:04 2010
@@ -41,6 +41,7 @@
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);
More information about the llvm-commits
mailing list