Close unique sections when switching away from them.
[oota-llvm.git] / include / llvm / MC / MCSectionELF.h
index 434a5b6a892cf252133779275c7b5c32add941b1..2bbc81fd79b7c5143421c2a1f20c532375fce7d2 100644 (file)
@@ -39,8 +39,6 @@ class MCSectionELF : public MCSection {
   /// below.
   unsigned Flags;
 
-  bool Unique;
-
   /// 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.
@@ -53,8 +51,8 @@ private:
   MCSectionELF(StringRef Section, unsigned type, unsigned flags, SectionKind K,
                unsigned entrySize, const MCSymbol *group, bool Unique,
                MCSymbol *Begin)
-      : MCSection(SV_ELF, K, Begin), SectionName(Section), Type(type),
-        Flags(flags), Unique(Unique), EntrySize(entrySize), Group(group) {}
+      : MCSection(SV_ELF, K, Begin, Unique), SectionName(Section), Type(type),
+        Flags(flags), EntrySize(entrySize), Group(group) {}
   ~MCSectionELF();
 
   void setSectionName(StringRef Name) { SectionName = Name; }