aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/llvm/MC/MCSection.h8
-rw-r--r--lib/MC/MCSection.cpp4
-rw-r--r--lib/Target/TargetLoweringObjectFile.cpp6
3 files changed, 9 insertions, 9 deletions
diff --git a/include/llvm/MC/MCSection.h b/include/llvm/MC/MCSection.h
index e73760a066..0669d0f39b 100644
--- a/include/llvm/MC/MCSection.h
+++ b/include/llvm/MC/MCSection.h
@@ -72,12 +72,12 @@ namespace llvm {
SectionKind K, MCContext &Ctx);
};
- class MCSectionPECOFF : public MCSection {
- MCSectionPECOFF(const StringRef &Name, bool IsDirective, SectionKind K,
- MCContext &Ctx) : MCSection(Name, IsDirective, K, Ctx) {}
+ class MCSectionCOFF : public MCSection {
+ MCSectionCOFF(const StringRef &Name, bool IsDirective, SectionKind K,
+ MCContext &Ctx) : MCSection(Name, IsDirective, K, Ctx) {}
public:
- static MCSectionPECOFF *Create(const StringRef &Name, bool IsDirective,
+ static MCSectionCOFF *Create(const StringRef &Name, bool IsDirective,
SectionKind K, MCContext &Ctx);
};
diff --git a/lib/MC/MCSection.cpp b/lib/MC/MCSection.cpp
index 2d5eb33b4d..ec6078ea37 100644
--- a/lib/MC/MCSection.cpp
+++ b/lib/MC/MCSection.cpp
@@ -40,8 +40,8 @@ Create(const StringRef &Name, bool IsDirective, SectionKind K, MCContext &Ctx) {
}
-MCSectionPECOFF *MCSectionPECOFF::
+MCSectionCOFF *MCSectionCOFF::
Create(const StringRef &Name, bool IsDirective, SectionKind K, MCContext &Ctx) {
- return new (Ctx) MCSectionPECOFF(Name, IsDirective, K, Ctx);
+ return new (Ctx) MCSectionCOFF(Name, IsDirective, K, Ctx);
}
diff --git a/lib/Target/TargetLoweringObjectFile.cpp b/lib/Target/TargetLoweringObjectFile.cpp
index eabd626372..bd3b37668d 100644
--- a/lib/Target/TargetLoweringObjectFile.cpp
+++ b/lib/Target/TargetLoweringObjectFile.cpp
@@ -284,7 +284,7 @@ const MCSection *TargetLoweringObjectFileELF::
getELFSection(const char *Name, bool isDirective, SectionKind Kind) const {
if (MCSection *S = getContext().GetSection(Name))
return S;
- return MCSection::Create(Name, isDirective, Kind, getContext());
+ return MCSectionELF::Create(Name, isDirective, Kind, getContext());
}
void TargetLoweringObjectFileELF::Initialize(MCContext &Ctx,
@@ -598,7 +598,7 @@ const MCSection *TargetLoweringObjectFileMachO::
getMachOSection(const char *Name, bool isDirective, SectionKind Kind) const {
if (MCSection *S = getContext().GetSection(Name))
return S;
- return MCSection::Create(Name, isDirective, Kind, getContext());
+ return MCSectionMachO::Create(Name, isDirective, Kind, getContext());
}
@@ -808,7 +808,7 @@ const MCSection *TargetLoweringObjectFileCOFF::
getCOFFSection(const char *Name, bool isDirective, SectionKind Kind) const {
if (MCSection *S = getContext().GetSection(Name))
return S;
- return MCSection::Create(Name, isDirective, Kind, getContext());
+ return MCSectionCOFF::Create(Name, isDirective, Kind, getContext());
}
void TargetLoweringObjectFileCOFF::Initialize(MCContext &Ctx,