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