Add an accessor to get the underlying MachO representation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142261 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/llvm/Object/MachO.h b/include/llvm/Object/MachO.h
index dc1a647..71830aa 100644
--- a/include/llvm/Object/MachO.h
+++ b/include/llvm/Object/MachO.h
@@ -38,6 +38,8 @@
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;