[llvm-commits] [llvm] r111169 - in /llvm/trunk/include/llvm/MC: MCContext.h MCSectionELF.h
Matt Fleming
matt at console-pimps.org
Mon Aug 16 11:33:46 PDT 2010
Author: mfleming
Date: Mon Aug 16 13:33:46 2010
New Revision: 111169
URL: http://llvm.org/viewvc/llvm-project?rev=111169&view=rev
Log:
ELF entry size support.
Some ELF sections contain fixed-sized entries. Provide a way to record
the entry size of a section.
Modified:
llvm/trunk/include/llvm/MC/MCContext.h
llvm/trunk/include/llvm/MC/MCSectionELF.h
Modified: llvm/trunk/include/llvm/MC/MCContext.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCContext.h?rev=111169&r1=111168&r2=111169&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCContext.h (original)
+++ llvm/trunk/include/llvm/MC/MCContext.h Mon Aug 16 13:33:46 2010
@@ -129,7 +129,8 @@
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);
Modified: llvm/trunk/include/llvm/MC/MCSectionELF.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCSectionELF.h?rev=111169&r1=111168&r2=111169&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCSectionELF.h (original)
+++ llvm/trunk/include/llvm/MC/MCSectionELF.h Mon Aug 16 13:33:46 2010
@@ -35,6 +35,11 @@
/// 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;
More information about the llvm-commits
mailing list