diff options
author | Matt Fleming <matt@console-pimps.org> | 2010-08-16 18:33:46 +0000 |
---|---|---|
committer | Matt Fleming <matt@console-pimps.org> | 2010-08-16 18:33:46 +0000 |
commit | 3e09669bc44aeb053e58ae8245ad0e49570b0e21 (patch) | |
tree | 552e840fd051b282802170b3cc70b422ad827581 /include | |
parent | 22f5dc79c05d69391b17e14ed912aa8e98a63027 (diff) | |
download | llvm-3e09669bc44aeb053e58ae8245ad0e49570b0e21.tar.gz llvm-3e09669bc44aeb053e58ae8245ad0e49570b0e21.tar.bz2 llvm-3e09669bc44aeb053e58ae8245ad0e49570b0e21.tar.xz |
ELF entry size support.
Some ELF sections contain fixed-sized entries. Provide a way to record
the entry size of a section.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111169 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/MC/MCContext.h | 3 | ||||
-rw-r--r-- | include/llvm/MC/MCSectionELF.h | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/include/llvm/MC/MCContext.h b/include/llvm/MC/MCContext.h index 4db0491972..17e79fb1e9 100644 --- a/include/llvm/MC/MCContext.h +++ b/include/llvm/MC/MCContext.h @@ -129,7 +129,8 @@ namespace llvm { const MCSection *getELFSection(StringRef Section, unsigned Type, unsigned Flags, SectionKind Kind, - bool IsExplicit = false); + bool IsExplicit = false, + unsigned EntrySize = 0); const MCSection *getCOFFSection(StringRef Section, unsigned Characteristics, int Selection, SectionKind Kind); diff --git a/include/llvm/MC/MCSectionELF.h b/include/llvm/MC/MCSectionELF.h index 5fe8171806..a90aa38156 100644 --- a/include/llvm/MC/MCSectionELF.h +++ b/include/llvm/MC/MCSectionELF.h @@ -35,6 +35,11 @@ class MCSectionELF : public MCSection { /// IsExplicit - Indicates that this section comes from globals with an /// explicit section specified. bool IsExplicit; + + /// EntrySize - The size of each entry in this section. This size only + /// makes sense for sections that contain fixed-sized entries. If a + /// section does not contain fixed-sized entries 'EntrySize' will be 0. + unsigned EntrySize; private: friend class MCContext; |