aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-08 20:52:13 +0000
committerChris Lattner <sabre@nondot.org>2009-08-08 20:52:13 +0000
commit245fdfb9c36a0c872a0e7ecfea1355af450bee4c (patch)
treedd17849baf0b11596abd653829ee612bc9508ce6 /llvm/lib
parent5a9bc50fa8c22e6e64bff68bc0733ee820defbe5 (diff)
downloadllvm-245fdfb9c36a0c872a0e7ecfea1355af450bee4c.zip
llvm-245fdfb9c36a0c872a0e7ecfea1355af450bee4c.tar.gz
llvm-245fdfb9c36a0c872a0e7ecfea1355af450bee4c.tar.bz2
make target-specific TLOF impls (except PIC16) create target-specific
MCSection instances. llvm-svn: 78500
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/MC/MCSection.cpp4
-rw-r--r--llvm/lib/Target/TargetLoweringObjectFile.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/MC/MCSection.cpp b/llvm/lib/MC/MCSection.cpp
index 2d5eb33..ec6078ea 100644
--- a/llvm/lib/MC/MCSection.cpp
+++ b/llvm/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/llvm/lib/Target/TargetLoweringObjectFile.cpp b/llvm/lib/Target/TargetLoweringObjectFile.cpp
index eabd626..bd3b376 100644
--- a/llvm/lib/Target/TargetLoweringObjectFile.cpp
+++ b/llvm/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,