Skip to content

Commit

Permalink
Export MCDisassembler's SubtargetInfo, to allow architecture-aware di…
Browse files Browse the repository at this point in the history
…sassembly

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194260 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Artyom Skrobov authored and Artyom Skrobov committed Nov 8, 2013
1 parent bf1757d commit 62ab265
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/llvm/MC/MCDisassembler.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ class MCDisassembler {
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;
Expand Down

0 comments on commit 62ab265

Please sign in to comment.