move macho section uniquing from MCParser and TLOF to MCContext where
[oota-llvm.git] / include / llvm / MC / MCSectionMachO.h
index 5839c281ed6fed3c41b8bb73f60bc3b890078099..465013c880ef08c3f357d417e33821d6ae3e33de 100644 (file)
@@ -50,7 +50,6 @@ class MCSectionMachO : public MCSection {
         SectionName[i] = 0;
     }        
   }
-public:
   
   static MCSectionMachO *Create(StringRef Segment,
                                 StringRef Section,
@@ -58,6 +57,9 @@ public:
                                 unsigned Reserved2,
                                 SectionKind K, MCContext &Ctx);
   
+  friend class MCContext;
+public:
+  
   /// These are the section type and attributes fields.  A MachO section can
   /// have only one Type, but can have any of the attributes specified.
   enum {