diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-07 18:42:06 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-07 18:42:06 +0000 |
commit | 6ab85a81d711b1e9d3bbc02e05812e7f867a7c40 (patch) | |
tree | e0457dfd54afd8e05995c1cad546a1954d6e4dcc /include/llvm/Object | |
parent | 77638d9110d67333e4ea8e6bd3206606a89bc24f (diff) | |
download | llvm-6ab85a81d711b1e9d3bbc02e05812e7f867a7c40.tar.gz llvm-6ab85a81d711b1e9d3bbc02e05812e7f867a7c40.tar.bz2 llvm-6ab85a81d711b1e9d3bbc02e05812e7f867a7c40.tar.xz |
Remove LoadCommandInfo now that we always have a pointer to the command.
LoadCommandInfo was needed to keep a command and its offset in the file. Now
that we always have a pointer to the command, we don't need the offset.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178991 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Object')
-rw-r--r-- | include/llvm/Object/MachO.h | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/include/llvm/Object/MachO.h b/include/llvm/Object/MachO.h index 8b3539a3e1..37ecad0eed 100644 --- a/include/llvm/Object/MachO.h +++ b/include/llvm/Object/MachO.h @@ -129,14 +129,6 @@ namespace MachOFormat { class MachOObjectFile : public ObjectFile { public: - struct LoadCommandInfo { - /// The load command information. - const MachOFormat::LoadCommand *Command; - - /// The offset to the start of the load command in memory. - uint64_t Offset; - }; - MachOObjectFile(MemoryBuffer *Object, error_code &ec); virtual symbol_iterator begin_symbols() const; @@ -163,8 +155,6 @@ public: ArrayRef<char> getSectionRawName(DataRefImpl Sec) const; ArrayRef<char>getSectionRawFinalSegmentName(DataRefImpl Sec) const; - const MachOFormat::LinkeditDataLoadCommand * - getLinkeditDataLoadCommand(LoadCommandInfo LCI) const; const MachOFormat::Section64 *getSection64(DataRefImpl DRI) const; const MachOFormat::Section *getSection(DataRefImpl DRI) const; const MachOFormat::Symbol64TableEntry * @@ -172,7 +162,7 @@ public: const MachOFormat::SymbolTableEntry * getSymbolTableEntry(DataRefImpl DRI) const; bool is64Bit() const; - LoadCommandInfo getLoadCommandInfo(unsigned Index) const; + const MachOFormat::LoadCommand *getLoadCommandInfo(unsigned Index) const; void ReadULEB128s(uint64_t Index, SmallVectorImpl<uint64_t> &Out) const; const macho::Header &getHeader() const; @@ -251,12 +241,6 @@ private: void moveToNextSymbol(DataRefImpl &DRI) const; const MachOFormat::RelocationEntry *getRelocation(DataRefImpl Rel) const; - const MachOFormat::SymtabLoadCommand * - getSymtabLoadCommand(LoadCommandInfo LCI) const; - const MachOFormat::SegmentLoadCommand * - getSegmentLoadCommand(LoadCommandInfo LCI) const; - const MachOFormat::Segment64LoadCommand * - getSegment64LoadCommand(LoadCommandInfo LCI) const; std::size_t getSectionIndex(DataRefImpl Sec) const; void printRelocationTargetName(const MachOFormat::RelocationEntry *RE, |