aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Object/MachO.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-04-08 23:57:13 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-04-08 23:57:13 +0000
commit3388589fc102b873ee9b73ffdab0f532ee3ceda6 (patch)
tree3918b4938e0c7c309f1f65c332a17b06b022713d /include/llvm/Object/MachO.h
parent0a9b452aa457ef911e5a6c327ae4b5596df55bca (diff)
downloadexternal_llvm-3388589fc102b873ee9b73ffdab0f532ee3ceda6.zip
external_llvm-3388589fc102b873ee9b73ffdab0f532ee3ceda6.tar.gz
external_llvm-3388589fc102b873ee9b73ffdab0f532ee3ceda6.tar.bz2
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/MachO.h')
-rw-r--r--include/llvm/Object/MachO.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Object/MachO.h b/include/llvm/Object/MachO.h
index 5c50ceb..07c8fc5 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;