diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-07 19:05:30 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-07 19:05:30 +0000 |
commit | 0f08eb135997a94ba37f79aaeb306993c21bbae2 (patch) | |
tree | abbaa47221ed9cf0ef7ca6979d2688e09dd487c2 /include/llvm/Object | |
parent | 6ab85a81d711b1e9d3bbc02e05812e7f867a7c40 (diff) |
Implement MachOObjectFile::getHeaderSize and MachOObjectFile::getData.
These were the last missing forwarding functions. Also consistently use
the forwarding functions instead of using MachOObj directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178992 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Object')
-rw-r--r-- | include/llvm/Object/MachO.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Object/MachO.h b/include/llvm/Object/MachO.h index 37ecad0eed..4cdf091fc1 100644 --- a/include/llvm/Object/MachO.h +++ b/include/llvm/Object/MachO.h @@ -165,6 +165,8 @@ public: const MachOFormat::LoadCommand *getLoadCommandInfo(unsigned Index) const; void ReadULEB128s(uint64_t Index, SmallVectorImpl<uint64_t> &Out) const; const macho::Header &getHeader() const; + unsigned getHeaderSize() const; + StringRef getData(size_t Offset, size_t Size) const; static inline bool classof(const Binary *v) { return v->isMachO(); |