diff options
Diffstat (limited to 'include/llvm/Object/MachOObject.h')
-rw-r--r-- | include/llvm/Object/MachOObject.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/llvm/Object/MachOObject.h b/include/llvm/Object/MachOObject.h index 836e5491d2..6c0a1d0cad 100644 --- a/include/llvm/Object/MachOObject.h +++ b/include/llvm/Object/MachOObject.h @@ -111,6 +111,11 @@ public: return StringTable; } + StringRef getStringAtIndex(unsigned Index) const { + size_t End = getStringTableData().find('\0', Index); + return getStringTableData().slice(Index, End); + } + void RegisterStringTable(macho::SymtabLoadCommand &SLC); /// @} @@ -157,6 +162,12 @@ public: void ReadRelocationEntry( uint64_t RelocationTableOffset, unsigned Index, InMemoryStruct<macho::RelocationEntry> &Res) const; + void ReadSymbolTableEntry( + uint64_t SymbolTableOffset, unsigned Index, + InMemoryStruct<macho::SymbolTableEntry> &Res) const; + void ReadSymbol64TableEntry( + uint64_t SymbolTableOffset, unsigned Index, + InMemoryStruct<macho::Symbol64TableEntry> &Res) const; /// @} }; |