summaryrefslogtreecommitdiff
path: root/include/llvm/MC/MCSectionELF.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-11-09 22:54:38 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-11-09 22:54:38 +0000
commit037b5be15a421b99066bb284027750a16ddd0fae (patch)
tree17d836f2072d12cd9227ad4eeca4df26f1052b75 /include/llvm/MC/MCSectionELF.h
parentc3236753d6bb69d20003a7da441e9a42707ed714 (diff)
downloadllvm-037b5be15a421b99066bb284027750a16ddd0fae.tar.gz
llvm-037b5be15a421b99066bb284027750a16ddd0fae.tar.bz2
llvm-037b5be15a421b99066bb284027750a16ddd0fae.tar.xz
Revert previous patch. Missed a case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118645 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCSectionELF.h')
-rw-r--r--include/llvm/MC/MCSectionELF.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/llvm/MC/MCSectionELF.h b/include/llvm/MC/MCSectionELF.h
index bf07b99b21..0e4a286e72 100644
--- a/include/llvm/MC/MCSectionELF.h
+++ b/include/llvm/MC/MCSectionELF.h
@@ -32,6 +32,10 @@ class MCSectionELF : public MCSection {
/// below.
unsigned Flags;
+ /// 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.
@@ -40,9 +44,9 @@ class MCSectionELF : public MCSection {
private:
friend class MCContext;
MCSectionELF(StringRef Section, unsigned type, unsigned flags,
- SectionKind K, unsigned entrySize)
+ SectionKind K, bool isExplicit, unsigned entrySize)
: MCSection(SV_ELF, K), SectionName(Section), Type(type), Flags(flags),
- EntrySize(entrySize) {}
+ IsExplicit(isExplicit), EntrySize(entrySize) {}
~MCSectionELF();
public:
@@ -50,6 +54,9 @@ public:
/// should be printed before the section name
bool ShouldOmitSectionDirective(StringRef Name, const MCAsmInfo &MAI) const;
+ /// ShouldPrintSectionType - Only prints the section type if supported
+ bool ShouldPrintSectionType(unsigned Ty) const;
+
/// HasCommonSymbols - True if this section holds common symbols, this is
/// indicated on the ELF object file by a symbol with SHN_COMMON section
/// header index.