add some comments: MCContext owns the MCSections, but it bump pointer allocates
[oota-llvm.git] / lib / MC / MCSection.cpp
index 80a80e7d8d09d9fe6bc64b6410415635f2432a85..f6ac5cc5cbd08160dc6556104108c493aa7cdce1 100644 (file)
@@ -107,30 +107,10 @@ void MCSectionELF::PrintSwitchToSection(const TargetAsmInfo &TAI,
       OS << ",16";
     }
   }
+  
+  OS << '\n';
 }
 
-//===----------------------------------------------------------------------===//
-// MCSectionMachO
-//===----------------------------------------------------------------------===//
-
-MCSectionMachO *MCSectionMachO::
-Create(const StringRef &Name, bool IsDirective, SectionKind K, MCContext &Ctx) {
-  return new (Ctx) MCSectionMachO(Name, IsDirective, K, Ctx);
-}
-
-MCSectionMachO::MCSectionMachO(const StringRef &name, bool isDirective,
-                               SectionKind K, MCContext &Ctx)
-  : MCSection(K), Name(name), IsDirective(isDirective) {
-  Ctx.SetSection(Name, this);
-}
-
-void MCSectionMachO::PrintSwitchToSection(const TargetAsmInfo &TAI,
-                                          raw_ostream &OS) const {
-  if (!isDirective())
-    OS << "\t.section\t" << getName() << '\n';
-  else
-    OS << getName() << '\n';
-}
 
 //===----------------------------------------------------------------------===//
 // MCSectionCOFF