From ad733cd851efbb17cf3a4a70ec49acfc0f1c68fe Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 24 Jul 2009 03:16:53 +0000 Subject: [PATCH] remove more bits of small section support. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76937 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Target/TargetAsmInfo.h | 24 ------------------------ lib/Target/Mips/MipsTargetAsmInfo.cpp | 13 ++++--------- lib/Target/TargetAsmInfo.cpp | 3 --- 3 files changed, 4 insertions(+), 36 deletions(-) diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h index 6a863604513..393be617f42 100644 --- a/include/llvm/Target/TargetAsmInfo.h +++ b/include/llvm/Target/TargetAsmInfo.h @@ -158,21 +158,6 @@ namespace llvm { /// jump tables). const Section *ReadOnlySection; // Defaults to NULL - /// SmallDataSection - This is the directive that is emitted to switch to a - /// small data section. - /// - const Section *SmallDataSection; // Defaults to NULL - - /// SmallBSSSection - This is the directive that is emitted to switch to a - /// small bss section. - /// - const Section *SmallBSSSection; // Defaults to NULL - - /// SmallRODataSection - This is the directive that is emitted to switch to - /// a small read-only data section. - /// - const Section *SmallRODataSection; // Defaults to NULL - /// TLSDataSection - Section directive for Thread Local data. /// const Section *TLSDataSection; // Defaults to ".tdata". @@ -660,15 +645,6 @@ namespace llvm { const Section *getReadOnlySection() const { return ReadOnlySection; } - const Section *getSmallDataSection() const { - return SmallDataSection; - } - const Section *getSmallBSSSection() const { - return SmallBSSSection; - } - const Section *getSmallRODataSection() const { - return SmallRODataSection; - } const Section *getTLSDataSection() const { return TLSDataSection; } diff --git a/lib/Target/Mips/MipsTargetAsmInfo.cpp b/lib/Target/Mips/MipsTargetAsmInfo.cpp index f7a0acb8e54..4f1d2079269 100644 --- a/lib/Target/Mips/MipsTargetAsmInfo.cpp +++ b/lib/Target/Mips/MipsTargetAsmInfo.cpp @@ -17,8 +17,8 @@ using namespace llvm; -MipsTargetAsmInfo::MipsTargetAsmInfo(const MipsTargetMachine &TM): - ELFTargetAsmInfo(TM) { +MipsTargetAsmInfo::MipsTargetAsmInfo(const MipsTargetMachine &TM) + : ELFTargetAsmInfo(TM) { AlignmentIsInBytes = false; COMMDirectiveTakesAlignment = true; @@ -32,13 +32,8 @@ MipsTargetAsmInfo::MipsTargetAsmInfo(const MipsTargetMachine &TM): BSSSection = "\t.section\t.bss"; CStringSection = ".rodata.str"; - if (!TM.getSubtarget().hasABICall()) { + if (!TM.getSubtarget().hasABICall()) JumpTableDirective = "\t.word\t"; - SmallDataSection = getNamedSection("\t.sdata", SectionFlags::Writeable); - SmallBSSSection = getNamedSection("\t.sbss", - SectionFlags::Writeable | - SectionFlags::BSS); - } else { + else JumpTableDirective = "\t.gpword\t"; - } } diff --git a/lib/Target/TargetAsmInfo.cpp b/lib/Target/TargetAsmInfo.cpp index c628a4f84e9..89c80091ecc 100644 --- a/lib/Target/TargetAsmInfo.cpp +++ b/lib/Target/TargetAsmInfo.cpp @@ -33,9 +33,6 @@ TargetAsmInfo::TargetAsmInfo(const TargetMachine &tm) BSSSection = "\t.bss"; BSSSection_ = 0; ReadOnlySection = 0; - SmallDataSection = 0; - SmallBSSSection = 0; - SmallRODataSection = 0; TLSDataSection = 0; TLSBSSSection = 0; ZeroFillDirective = 0; -- 2.11.0