add some comments: MCContext owns the MCSections, but it bump pointer allocates
[oota-llvm.git] / lib / MC / MCSection.cpp
index 65e86d3b408834b51e9cb1bf49af02ffeee00958..f6ac5cc5cbd08160dc6556104108c493aa7cdce1 100644 (file)
@@ -111,28 +111,6 @@ void MCSectionELF::PrintSwitchToSection(const TargetAsmInfo &TAI,
   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