1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

MC: Give target specific parsers access to the MCStreamer.

llvm-svn: 81416
This commit is contained in:
Daniel Dunbar 2009-09-10 00:59:15 +00:00
parent 76cffeddd1
commit bae4e52bd0
2 changed files with 6 additions and 0 deletions

View File

@ -16,6 +16,7 @@ namespace llvm {
class MCAsmLexer;
class MCContext;
class MCExpr;
class MCStreamer;
class MCValue;
class SMLoc;
class Twine;
@ -35,6 +36,9 @@ public:
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
/// Msg.
virtual void Warning(SMLoc L, const Twine &Msg) = 0;

View File

@ -67,6 +67,8 @@ public:
virtual MCContext &getContext() { return Ctx; }
virtual MCStreamer &getStreamer() { return Out; }
virtual void Warning(SMLoc L, const Twine &Meg);
virtual bool Error(SMLoc L, const Twine &Msg);