summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2011-10-17 21:37:03 +0000
committerOwen Anderson <resistor@mac.com>2011-10-17 21:37:03 +0000
commitdf3f929ec2debe5402911dea7f3a0d4528365a1c (patch)
treecc313a1ac99f453758a6a74710654a13c5bf30cc /include
parentd2c6ff1ac6d78a9dcf89c78098b1cc75204d1229 (diff)
downloadllvm-df3f929ec2debe5402911dea7f3a0d4528365a1c.tar.gz
llvm-df3f929ec2debe5402911dea7f3a0d4528365a1c.tar.bz2
llvm-df3f929ec2debe5402911dea7f3a0d4528365a1c.tar.xz
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Object/MachO.h2
1 files changed, 2 insertions, 0 deletions
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;