diff options
Diffstat (limited to 'include/llvm/Object')
-rw-r--r-- | include/llvm/Object/MachOFormat.h | 9 | ||||
-rw-r--r-- | include/llvm/Object/MachOObject.h | 3 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/llvm/Object/MachOFormat.h b/include/llvm/Object/MachOFormat.h index 320140773d..0a2cceccb8 100644 --- a/include/llvm/Object/MachOFormat.h +++ b/include/llvm/Object/MachOFormat.h @@ -259,6 +259,15 @@ namespace macho { }; /// @} + /// @name Relocation Data + /// @{ + + struct RelocationEntry { + uint32_t Word0; + uint32_t Word1; + }; + + /// @} // See <mach-o/nlist.h>. enum SymbolTypeType { diff --git a/include/llvm/Object/MachOObject.h b/include/llvm/Object/MachOObject.h index 77a8d3592e..53c7abf34a 100644 --- a/include/llvm/Object/MachOObject.h +++ b/include/llvm/Object/MachOObject.h @@ -137,6 +137,9 @@ public: const LoadCommandInfo &LCI, unsigned Index, InMemoryStruct<macho::Section64> &Res) const; + void ReadRelocationEntry( + uint64_t RelocationTableOffset, unsigned Index, + InMemoryStruct<macho::RelocationEntry> &Res) const; /// @} }; |