mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 05:25:47 +00:00
MC: Give target specific parsers access to the MCStreamer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81416 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -16,6 +16,7 @@ namespace llvm {
|
|||||||
class MCAsmLexer;
|
class MCAsmLexer;
|
||||||
class MCContext;
|
class MCContext;
|
||||||
class MCExpr;
|
class MCExpr;
|
||||||
|
class MCStreamer;
|
||||||
class MCValue;
|
class MCValue;
|
||||||
class SMLoc;
|
class SMLoc;
|
||||||
class Twine;
|
class Twine;
|
||||||
@@ -35,6 +36,9 @@ public:
|
|||||||
|
|
||||||
virtual MCContext &getContext() = 0;
|
virtual MCContext &getContext() = 0;
|
||||||
|
|
||||||
|
/// getSteamer - Return the output streamer for the assembler.
|
||||||
|
virtual MCStreamer &getStreamer() = 0;
|
||||||
|
|
||||||
/// Warning - Emit a warning at the location \arg L, with the message \arg
|
/// Warning - Emit a warning at the location \arg L, with the message \arg
|
||||||
/// Msg.
|
/// Msg.
|
||||||
virtual void Warning(SMLoc L, const Twine &Msg) = 0;
|
virtual void Warning(SMLoc L, const Twine &Msg) = 0;
|
||||||
|
@@ -67,6 +67,8 @@ public:
|
|||||||
|
|
||||||
virtual MCContext &getContext() { return Ctx; }
|
virtual MCContext &getContext() { return Ctx; }
|
||||||
|
|
||||||
|
virtual MCStreamer &getStreamer() { return Out; }
|
||||||
|
|
||||||
virtual void Warning(SMLoc L, const Twine &Meg);
|
virtual void Warning(SMLoc L, const Twine &Meg);
|
||||||
|
|
||||||
virtual bool Error(SMLoc L, const Twine &Msg);
|
virtual bool Error(SMLoc L, const Twine &Msg);
|
||||||
|
Reference in New Issue
Block a user