Move getSubsectionInsertionPoint to MCSection.
[oota-llvm.git] / include / llvm / MC / MCSection.h
index 2e155bbc325cf0c9972282e9f79de72d5a3b8117..7f9d976b95917376f03ace022c2ee00e54766d9e 100644 (file)
@@ -33,6 +33,7 @@ class raw_ostream;
 
 class MCSectionData {
   friend class MCAsmLayout;
+  friend class MCSection;
 
   MCSectionData(const MCSectionData &) = delete;
   void operator=(const MCSectionData &) = delete;
@@ -96,8 +97,6 @@ public:
 
   bool empty() const;
 
-  iterator getSubsectionInsertionPoint(unsigned Subsection);
-
   void dump();
 
   /// @}
@@ -220,6 +219,8 @@ public:
     return const_cast<MCSection *>(this)->rend();
   }
 
+  MCSectionData::iterator getSubsectionInsertionPoint(unsigned Subsection);
+
   virtual void PrintSwitchToSection(const MCAsmInfo &MAI, raw_ostream &OS,
                                     const MCExpr *Subsection) const = 0;