diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-11-27 13:26:12 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-11-27 13:26:12 +0000 |
commit | 4c55e0db0f0a095dcd76326bef24d0fe05d2a5e4 (patch) | |
tree | ff0f8b98a1f6b8a9d0bd3bd2ace1a7bdc6886919 /include/llvm/Object | |
parent | 4aeb48904344d2dd8e3b8f39a4752567828ad96f (diff) | |
download | external_llvm-4c55e0db0f0a095dcd76326bef24d0fe05d2a5e4.zip external_llvm-4c55e0db0f0a095dcd76326bef24d0fe05d2a5e4.tar.gz external_llvm-4c55e0db0f0a095dcd76326bef24d0fe05d2a5e4.tar.bz2 |
macho-dump: Add support for dumping dysymtab indirect symbol table.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120214 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Object')
-rw-r--r-- | include/llvm/Object/MachOFormat.h | 9 | ||||
-rw-r--r-- | include/llvm/Object/MachOObject.h | 4 |
2 files changed, 13 insertions, 0 deletions
diff --git a/include/llvm/Object/MachOFormat.h b/include/llvm/Object/MachOFormat.h index 9e18d2f..a6f0afb 100644 --- a/include/llvm/Object/MachOFormat.h +++ b/include/llvm/Object/MachOFormat.h @@ -220,6 +220,15 @@ namespace macho { /// @} + /// @name Indirect Symbol Table + /// @{ + + struct IndirectSymbolTableEntry { + uint32_t Index; + }; + + /// @} + // See <mach-o/nlist.h>. enum SymbolTypeType { STT_Undefined = 0x00, diff --git a/include/llvm/Object/MachOObject.h b/include/llvm/Object/MachOObject.h index 9006581..79fbfd2 100644 --- a/include/llvm/Object/MachOObject.h +++ b/include/llvm/Object/MachOObject.h @@ -125,6 +125,10 @@ public: void ReadDysymtabLoadCommand( const LoadCommandInfo &LCI, InMemoryStruct<macho::DysymtabLoadCommand> &Res) const; + void ReadIndirectSymbolTableEntry( + const macho::DysymtabLoadCommand &DLC, + unsigned Index, + InMemoryStruct<macho::IndirectSymbolTableEntry> &Res) const; /// @} }; |