[llvm-commits] [llvm] r76937 - in /llvm/trunk: include/llvm/Target/TargetAsmInfo.h lib/Target/Mips/MipsTargetAsmInfo.cpp lib/Target/TargetAsmInfo.cpp
Chris Lattner
sabre at nondot.org
Thu Jul 23 20:16:53 PDT 2009
Author: lattner
Date: Thu Jul 23 22:16:53 2009
New Revision: 76937
URL: http://llvm.org/viewvc/llvm-project?rev=76937&view=rev
Log:
remove more bits of small section support.
Modified:
llvm/trunk/include/llvm/Target/TargetAsmInfo.h
llvm/trunk/lib/Target/Mips/MipsTargetAsmInfo.cpp
llvm/trunk/lib/Target/TargetAsmInfo.cpp
Modified: llvm/trunk/include/llvm/Target/TargetAsmInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetAsmInfo.h?rev=76937&r1=76936&r2=76937&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/TargetAsmInfo.h (original)
+++ llvm/trunk/include/llvm/Target/TargetAsmInfo.h Thu Jul 23 22:16:53 2009
@@ -158,21 +158,6 @@
/// 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 @@
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;
}
Modified: llvm/trunk/lib/Target/Mips/MipsTargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsTargetAsmInfo.cpp?rev=76937&r1=76936&r2=76937&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsTargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsTargetAsmInfo.cpp Thu Jul 23 22:16:53 2009
@@ -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 @@
BSSSection = "\t.section\t.bss";
CStringSection = ".rodata.str";
- if (!TM.getSubtarget<MipsSubtarget>().hasABICall()) {
+ if (!TM.getSubtarget<MipsSubtarget>().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";
- }
}
Modified: llvm/trunk/lib/Target/TargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetAsmInfo.cpp?rev=76937&r1=76936&r2=76937&view=diff
==============================================================================
--- llvm/trunk/lib/Target/TargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/TargetAsmInfo.cpp Thu Jul 23 22:16:53 2009
@@ -33,9 +33,6 @@
BSSSection = "\t.bss";
BSSSection_ = 0;
ReadOnlySection = 0;
- SmallDataSection = 0;
- SmallBSSSection = 0;
- SmallRODataSection = 0;
TLSDataSection = 0;
TLSBSSSection = 0;
ZeroFillDirective = 0;
More information about the llvm-commits
mailing list