mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 15:19:33 +00:00
stub out PECOFF/MachO/ELF MCSection classes
llvm-svn: 78499
This commit is contained in:
parent
1c704ad33e
commit
95ca008a43
@ -53,7 +53,33 @@ namespace llvm {
|
||||
};
|
||||
|
||||
|
||||
typedef MCSection MCSectionELF;
|
||||
class MCSectionELF : public MCSection {
|
||||
MCSectionELF(const StringRef &Name, bool IsDirective, SectionKind K,
|
||||
MCContext &Ctx) : MCSection(Name, IsDirective, K, Ctx) {}
|
||||
public:
|
||||
|
||||
static MCSectionELF *Create(const StringRef &Name, bool IsDirective,
|
||||
SectionKind K, MCContext &Ctx);
|
||||
|
||||
};
|
||||
|
||||
class MCSectionMachO : public MCSection {
|
||||
MCSectionMachO(const StringRef &Name, bool IsDirective, SectionKind K,
|
||||
MCContext &Ctx) : MCSection(Name, IsDirective, K, Ctx) {}
|
||||
public:
|
||||
|
||||
static MCSectionMachO *Create(const StringRef &Name, bool IsDirective,
|
||||
SectionKind K, MCContext &Ctx);
|
||||
};
|
||||
|
||||
class MCSectionPECOFF : public MCSection {
|
||||
MCSectionPECOFF(const StringRef &Name, bool IsDirective, SectionKind K,
|
||||
MCContext &Ctx) : MCSection(Name, IsDirective, K, Ctx) {}
|
||||
public:
|
||||
|
||||
static MCSectionPECOFF *Create(const StringRef &Name, bool IsDirective,
|
||||
SectionKind K, MCContext &Ctx);
|
||||
};
|
||||
|
||||
} // end namespace llvm
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user