diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-08 20:50:49 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-08 20:50:49 +0000 |
commit | 5a9bc50fa8c22e6e64bff68bc0733ee820defbe5 (patch) | |
tree | 3977f13bd65a04c9e32e2466ccad5c3ae9c6fc4b /llvm/lib/MC/MCSection.cpp | |
parent | c9ea8fddb258a847ddd76df0a8b6676b219d99d2 (diff) | |
download | bcm5719-llvm-5a9bc50fa8c22e6e64bff68bc0733ee820defbe5.tar.gz bcm5719-llvm-5a9bc50fa8c22e6e64bff68bc0733ee820defbe5.zip |
stub out PECOFF/MachO/ELF MCSection classes
llvm-svn: 78499
Diffstat (limited to 'llvm/lib/MC/MCSection.cpp')
-rw-r--r-- | llvm/lib/MC/MCSection.cpp | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCSection.cpp b/llvm/lib/MC/MCSection.cpp index 84487b24be2..2d5eb33b4d7 100644 --- a/llvm/lib/MC/MCSection.cpp +++ b/llvm/lib/MC/MCSection.cpp @@ -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); +} + |