Export MCDisassembler's SubtargetInfo, to allow architecture-aware disassembly

llvm-svn: 194260
This commit is contained in:
Artyom Skrobov 2013-11-08 16:07:43 +00:00
parent 3b52f0b135
commit 08b2257f14
1 changed files with 2 additions and 0 deletions

View File

@ -131,6 +131,8 @@ public:
void *getDisInfoBlock() const { return DisInfo; }
MCContext *getMCContext() const { return Ctx; }
const MCSubtargetInfo& getSubtargetInfo() const { return STI; }
// Marked mutable because we cache it inside the disassembler, rather than
// having to pass it around as an argument through all the autogenerated code.
mutable raw_ostream *CommentStream;