Add an accessor to get the underlying MachO representation.
authorOwen Anderson <resistor@mac.com>
Mon, 17 Oct 2011 21:37:03 +0000 (21:37 +0000)
committerOwen Anderson <resistor@mac.com>
Mon, 17 Oct 2011 21:37:03 +0000 (21:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142261 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Object/MachO.h

index dc1a64789313a4bc52dccfcf5ea2077463e95323..71830aa89b17dc0453985699fa43ac5a0fe5ddf5 100644 (file)
@@ -38,6 +38,8 @@ public:
   virtual StringRef getFileFormatName() const;
   virtual unsigned getArch() const;
 
+  MachOObject *getObject() { return MachOObj; }
+
 protected:
   virtual error_code getSymbolNext(DataRefImpl Symb, SymbolRef &Res) const;
   virtual error_code getSymbolName(DataRefImpl Symb, StringRef &Res) const;