diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-06 03:50:05 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-06 03:50:05 +0000 |
commit | 68d287d19e6918f46e58456fdd237c049efe372e (patch) | |
tree | fbf678318c7932818e8a1c00549e177546d38079 /include/llvm/Object | |
parent | 82a21077a004087a87711bfd7a4ab171cebaa5ec (diff) |
Remove last use of InMemoryStruct from MachOObjectFile.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178948 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Object')
-rw-r--r-- | include/llvm/Object/MachO.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/include/llvm/Object/MachO.h b/include/llvm/Object/MachO.h index d6abaf1be2..8543ecc829 100644 --- a/include/llvm/Object/MachO.h +++ b/include/llvm/Object/MachO.h @@ -85,6 +85,34 @@ namespace MachOFormat { support::ulittle32_t StringTableOffset; support::ulittle32_t StringTableSize; }; + + struct SegmentLoadCommand { + support::ulittle32_t Type; + support::ulittle32_t Size; + char Name[16]; + support::ulittle32_t VMAddress; + support::ulittle32_t VMSize; + support::ulittle32_t FileOffset; + support::ulittle32_t FileSize; + support::ulittle32_t MaxVMProtection; + support::ulittle32_t InitialVMProtection; + support::ulittle32_t NumSections; + support::ulittle32_t Flags; + }; + + struct Segment64LoadCommand { + support::ulittle32_t Type; + support::ulittle32_t Size; + char Name[16]; + support::ulittle64_t VMAddress; + support::ulittle64_t VMSize; + support::ulittle64_t FileOffset; + support::ulittle64_t FileSize; + support::ulittle32_t MaxVMProtection; + support::ulittle32_t InitialVMProtection; + support::ulittle32_t NumSections; + support::ulittle32_t Flags; + }; } typedef MachOObject::LoadCommandInfo LoadCommandInfo; @@ -204,6 +232,10 @@ private: const MachOFormat::RelocationEntry *getRelocation(DataRefImpl Rel) const; const MachOFormat::SymtabLoadCommand * getSymtabLoadCommand(LoadCommandInfo LCI) const; + const MachOFormat::SegmentLoadCommand * + getSegmentLoadCommand(LoadCommandInfo LCI) const; + const MachOFormat::Segment64LoadCommand * + getSegment64LoadCommand(LoadCommandInfo LCI) const; std::size_t getSectionIndex(DataRefImpl Sec) const; void printRelocationTargetName(const MachOFormat::RelocationEntry *RE, |