stub out PECOFF/MachO/ELF MCSection classes

llvm-svn: 78499
This commit is contained in:
Chris Lattner
2009-08-08 20:50:49 +00:00
parent c9ea8fddb2
commit 5a9bc50fa8
2 changed files with 47 additions and 3 deletions

View File

@@ -22,8 +22,26 @@ MCSection::MCSection(const StringRef &N, bool isDirective, SectionKind K,
Entry = this;
}
MCSection *MCSection::Create(const StringRef &Name, bool IsDirective,
SectionKind K, MCContext &Ctx) {
MCSection *MCSection::
Create(const StringRef &Name, bool IsDirective, SectionKind K, MCContext &Ctx) {
return new (Ctx) MCSection(Name, IsDirective, K, Ctx);
}
MCSectionELF *MCSectionELF::
Create(const StringRef &Name, bool IsDirective, SectionKind K, MCContext &Ctx) {
return new (Ctx) MCSectionELF(Name, IsDirective, K, Ctx);
}
MCSectionMachO *MCSectionMachO::
Create(const StringRef &Name, bool IsDirective, SectionKind K, MCContext &Ctx) {
return new (Ctx) MCSectionMachO(Name, IsDirective, K, Ctx);
}
MCSectionPECOFF *MCSectionPECOFF::
Create(const StringRef &Name, bool IsDirective, SectionKind K, MCContext &Ctx) {
return new (Ctx) MCSectionPECOFF(Name, IsDirective, K, Ctx);
}