diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-08 23:57:13 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-08 23:57:13 +0000 |
commit | 3388589fc102b873ee9b73ffdab0f532ee3ceda6 (patch) | |
tree | 3918b4938e0c7c309f1f65c332a17b06b022713d /include/llvm/Object | |
parent | 0a9b452aa457ef911e5a6c327ae4b5596df55bca (diff) | |
download | llvm-3388589fc102b873ee9b73ffdab0f532ee3ceda6.tar.gz llvm-3388589fc102b873ee9b73ffdab0f532ee3ceda6.tar.bz2 llvm-3388589fc102b873ee9b73ffdab0f532ee3ceda6.tar.xz |
Add a SectionBase struct.
Use it to share code and when we don't need to know if we have a 32 or 64
bit Section.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179072 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Object')
-rw-r--r-- | include/llvm/Object/MachO.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Object/MachO.h b/include/llvm/Object/MachO.h index 5c50ceb2b6..07c8fc5ca2 100644 --- a/include/llvm/Object/MachO.h +++ b/include/llvm/Object/MachO.h @@ -27,6 +27,11 @@ namespace llvm { namespace object { namespace MachOFormat { + struct SectionBase { + char Name[16]; + char SegmentName[16]; + }; + template<bool is64Bits> struct Section; @@ -254,6 +259,7 @@ private: typedef SmallVector<DataRefImpl, 1> SectionList; SectionList Sections; + const MachOFormat::SectionBase *getSectionBase(DataRefImpl DRI) const; void moveToNextSection(DataRefImpl &DRI) const; |