diff options
Diffstat (limited to 'include/llvm/Object/MachO.h')
-rw-r--r-- | include/llvm/Object/MachO.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/llvm/Object/MachO.h b/include/llvm/Object/MachO.h index badd4401e7..668b5a6b21 100644 --- a/include/llvm/Object/MachO.h +++ b/include/llvm/Object/MachO.h @@ -55,6 +55,11 @@ namespace MachOFormat { support::ulittle32_t Reserved2; support::ulittle32_t Reserved3; }; + + struct RelocationEntry { + support::ulittle32_t Word0; + support::ulittle32_t Word1; + }; } typedef MachOObject::LoadCommandInfo LoadCommandInfo; @@ -161,11 +166,10 @@ private: void moveToNextSymbol(DataRefImpl &DRI) const; const MachOFormat::Section *getSection(DataRefImpl DRI) const; const MachOFormat::Section64 *getSection64(DataRefImpl DRI) const; - void getRelocation(DataRefImpl Rel, - InMemoryStruct<macho::RelocationEntry> &Res) const; + const MachOFormat::RelocationEntry *getRelocation(DataRefImpl Rel) const; std::size_t getSectionIndex(DataRefImpl Sec) const; - void printRelocationTargetName(InMemoryStruct<macho::RelocationEntry>& RE, + void printRelocationTargetName(const MachOFormat::RelocationEntry *RE, raw_string_ostream &fmt) const; }; |