aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target
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
commita551f8a67e6fccf4487abf62c2a5eba9db990a35 (patch)
treeb65bb7aaa199fb900f27e00950af39612a9eccda /lib/Target
parentb059d5d8d70f5a44d2f8273d439353c0eb39f093 (diff)
downloadexternal_llvm-a551f8a67e6fccf4487abf62c2a5eba9db990a35.zip
external_llvm-a551f8a67e6fccf4487abf62c2a5eba9db990a35.tar.gz
external_llvm-a551f8a67e6fccf4487abf62c2a5eba9db990a35.tar.bz2
make target-specific TLOF impls (except PIC16) create target-specific
MCSection instances. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78500 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/TargetLoweringObjectFile.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/TargetLoweringObjectFile.cpp b/lib/Target/TargetLoweringObjectFile.cpp
index eabd626..bd3b376 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,