diff options
Diffstat (limited to 'include/llvm/Object/MachO.h')
-rw-r--r-- | include/llvm/Object/MachO.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/llvm/Object/MachO.h b/include/llvm/Object/MachO.h index 668b5a6b21..70d7f6ee8a 100644 --- a/include/llvm/Object/MachO.h +++ b/include/llvm/Object/MachO.h @@ -60,6 +60,15 @@ namespace MachOFormat { support::ulittle32_t Word0; support::ulittle32_t Word1; }; + + struct SymbolTableEntry { + support::ulittle32_t StringIndex; + uint8_t Type; + uint8_t SectionIndex; + support::ulittle16_t Flags; + support::ulittle32_t Value; + }; + } typedef MachOObject::LoadCommandInfo LoadCommandInfo; @@ -159,8 +168,8 @@ private: void moveToNextSection(DataRefImpl &DRI) const; - void getSymbolTableEntry(DataRefImpl DRI, - InMemoryStruct<macho::SymbolTableEntry> &Res) const; + const MachOFormat::SymbolTableEntry * + getSymbolTableEntry(DataRefImpl DRI) const; void getSymbol64TableEntry(DataRefImpl DRI, InMemoryStruct<macho::Symbol64TableEntry> &Res) const; void moveToNextSymbol(DataRefImpl &DRI) const; |