diff options
author | Artyom Skrobov <Artyom.Skrobov@arm.com> | 2013-11-08 16:07:43 +0000 |
---|---|---|
committer | Artyom Skrobov <Artyom.Skrobov@arm.com> | 2013-11-08 16:07:43 +0000 |
commit | 62ab26548fee37422fb90daaac22fc1140be797d (patch) | |
tree | 7c697de7d46f4b8487d17040bf9f058c4986ecc0 | |
parent | bf1757d5a100ef08e5e9b31b8dce5f5aad320197 (diff) | |
download | llvm-62ab26548fee37422fb90daaac22fc1140be797d.tar.gz llvm-62ab26548fee37422fb90daaac22fc1140be797d.tar.bz2 llvm-62ab26548fee37422fb90daaac22fc1140be797d.tar.xz |
Export MCDisassembler's SubtargetInfo, to allow architecture-aware disassembly
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194260 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/MC/MCDisassembler.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/MC/MCDisassembler.h b/include/llvm/MC/MCDisassembler.h index e82b0c1229..83f26ef3ed 100644 --- a/include/llvm/MC/MCDisassembler.h +++ b/include/llvm/MC/MCDisassembler.h @@ -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; |