From df3f929ec2debe5402911dea7f3a0d4528365a1c Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Mon, 17 Oct 2011 21:37:03 +0000 Subject: 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 --- include/llvm/Object/MachO.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/llvm/Object/MachO.h') diff --git a/include/llvm/Object/MachO.h b/include/llvm/Object/MachO.h index dc1a647893..71830aa89b 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; -- cgit v1.2.3