Export MCDisassembler's SubtargetInfo, to allow architecture-aware disassembly
authorArtyom Skrobov <Artyom.Skrobov@arm.com>
Fri, 8 Nov 2013 16:07:43 +0000 (16:07 +0000)
committerArtyom Skrobov <Artyom.Skrobov@arm.com>
Fri, 8 Nov 2013 16:07:43 +0000 (16:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194260 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCDisassembler.h

index e82b0c12291393ac2d677ee7d7475f3c524fb7ea..83f26ef3edb9e237dff8eda6a68c8328da5a3590 100644 (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;