mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-24 09:29:42 +00:00
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
This commit is contained in:
parent
22f5dc79c0
commit
3e09669bc4
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user