From: Owen Anderson Date: Mon, 17 Oct 2011 21:37:03 +0000 (+0000) Subject: Add an accessor to get the underlying MachO representation. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=df3f929ec2debe5402911dea7f3a0d4528365a1c;p=oota-llvm.git 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 dc1a6478931..71830aa89b1 100644 --- a/include/llvm/Object/MachO.h +++ b/include/llvm/Object/MachO.h @@ -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;