[llvm-commits] [llvm] r56580 - in /llvm/trunk: include/llvm/Target/DarwinTargetAsmInfo.h include/llvm/Target/TargetAsmInfo.h lib/Target/ARM/ARMTargetAsmInfo.cpp lib/Target/CellSPU/SPUTargetAsmInfo.cpp lib/Target/DarwinTargetAsmInfo.cpp lib/Target/Mips/MipsTargetAsmInfo.cpp lib/Target/PowerPC/PPCTargetAsmInfo.cpp lib/Target/TargetAsmInfo.cpp lib/Target/X86/X86TargetAsmInfo.cpp
Anton Korobeynikov
asl at math.spbu.ru
Wed Sep 24 15:18:55 PDT 2008
Author: asl
Date: Wed Sep 24 17:18:54 2008
New Revision: 56580
URL: http://llvm.org/viewvc/llvm-project?rev=56580&view=rev
Log:
Get rid of now unused {Four,Eight,Sixteen}ByteConstantSection
Modified:
llvm/trunk/include/llvm/Target/DarwinTargetAsmInfo.h
llvm/trunk/include/llvm/Target/TargetAsmInfo.h
llvm/trunk/lib/Target/ARM/ARMTargetAsmInfo.cpp
llvm/trunk/lib/Target/CellSPU/SPUTargetAsmInfo.cpp
llvm/trunk/lib/Target/DarwinTargetAsmInfo.cpp
llvm/trunk/lib/Target/Mips/MipsTargetAsmInfo.cpp
llvm/trunk/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
llvm/trunk/lib/Target/TargetAsmInfo.cpp
llvm/trunk/lib/Target/X86/X86TargetAsmInfo.cpp
Modified: llvm/trunk/include/llvm/Target/DarwinTargetAsmInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/DarwinTargetAsmInfo.h?rev=56580&r1=56579&r2=56580&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/DarwinTargetAsmInfo.h (original)
+++ llvm/trunk/include/llvm/Target/DarwinTargetAsmInfo.h Wed Sep 24 17:18:54 2008
@@ -29,6 +29,9 @@
const Section* ConstDataCoalSection;
const Section* ConstDataSection;
const Section* DataCoalSection;
+ const Section* FourByteConstantSection;
+ const Section* EightByteConstantSection;
+ const Section* SixteenByteConstantSection;
explicit DarwinTargetAsmInfo(const TargetMachine &TM);
virtual const Section* SelectSectionForGlobal(const GlobalValue *GV) const;
Modified: llvm/trunk/include/llvm/Target/TargetAsmInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetAsmInfo.h?rev=56580&r1=56579&r2=56580&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/TargetAsmInfo.h (original)
+++ llvm/trunk/include/llvm/Target/TargetAsmInfo.h Wed Sep 24 17:18:54 2008
@@ -361,16 +361,6 @@
/// Defaults to "\t.section .dtors,\"aw\", at progbits".
const char *StaticDtorsSection;
- /// FourByteConstantSection, EightByteConstantSection,
- /// SixteenByteConstantSection - These are special sections where we place
- /// 4-, 8-, and 16- byte constant literals.
- const char *FourByteConstantSection;
- const Section *FourByteConstantSection_;
- const char *EightByteConstantSection;
- const Section *EightByteConstantSection_;
- const char *SixteenByteConstantSection;
- const Section *SixteenByteConstantSection_;
-
//===--- Global Variable Emission Directives --------------------------===//
/// GlobalDirective - This is the directive used to declare a global entity.
@@ -757,24 +747,6 @@
const char *getStaticDtorsSection() const {
return StaticDtorsSection;
}
- const char *getFourByteConstantSection() const {
- return FourByteConstantSection;
- }
- const Section *getFourByteConstantSection_() const {
- return FourByteConstantSection_;
- }
- const char *getEightByteConstantSection() const {
- return EightByteConstantSection;
- }
- const Section *getEightByteConstantSection_() const {
- return EightByteConstantSection_;
- }
- const char *getSixteenByteConstantSection() const {
- return SixteenByteConstantSection;
- }
- const Section *getSixteenByteConstantSection_() const {
- return SixteenByteConstantSection_;
- }
const char *getGlobalDirective() const {
return GlobalDirective;
}
Modified: llvm/trunk/lib/Target/ARM/ARMTargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMTargetAsmInfo.cpp?rev=56580&r1=56579&r2=56580&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMTargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMTargetAsmInfo.cpp Wed Sep 24 17:18:54 2008
@@ -72,8 +72,6 @@
ProtectedDirective = NULL;
JumpTableDataSection = ".const";
CStringSection = "\t.cstring";
- FourByteConstantSection = "\t.literal4\n";
- EightByteConstantSection = "\t.literal8\n";
ReadOnlySection = "\t.const\n";
HasDotTypeDotSizeDirective = false;
NeedsIndirectEncoding = true;
@@ -115,9 +113,6 @@
AbsoluteDebugSectionOffsets = true;
CStringSection = ".rodata.str";
ReadOnlySection = "\t.section\t.rodata\n";
- FourByteConstantSection = "\t.section\t.rodata.cst4,\"aM\", at progbits,4";
- EightByteConstantSection = "\t.section\t.rodata.cst8,\"aM\", at progbits,8";
- SixteenByteConstantSection = "\t.section\t.rodata.cst16,\"aM\", at progbits,16";
PrivateGlobalPrefix = ".L";
WeakRefDirective = "\t.weak\t";
SetDirective = "\t.set\t";
Modified: llvm/trunk/lib/Target/CellSPU/SPUTargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/CellSPU/SPUTargetAsmInfo.cpp?rev=56580&r1=56579&r2=56580&view=diff
==============================================================================
--- llvm/trunk/lib/Target/CellSPU/SPUTargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/CellSPU/SPUTargetAsmInfo.cpp Wed Sep 24 17:18:54 2008
@@ -31,8 +31,6 @@
CStringSection = "\t.cstring";
StaticCtorsSection = ".mod_init_func";
StaticDtorsSection = ".mod_term_func";
- FourByteConstantSection = ".const";
- SixteenByteConstantSection = "\t.section\t.rodata.cst16,\"aM\", at progbits,16";
InlineAsmStart = "# InlineAsm Start";
InlineAsmEnd = "# InlineAsm End";
Modified: llvm/trunk/lib/Target/DarwinTargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/DarwinTargetAsmInfo.cpp?rev=56580&r1=56579&r2=56580&view=diff
==============================================================================
--- llvm/trunk/lib/Target/DarwinTargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/DarwinTargetAsmInfo.cpp Wed Sep 24 17:18:54 2008
@@ -29,13 +29,14 @@
CStringSection_ = getUnnamedSection("\t.cstring",
SectionFlags::Mergeable | SectionFlags::Strings);
- FourByteConstantSection_ = getUnnamedSection("\t.literal4\n",
+ FourByteConstantSection = getUnnamedSection("\t.literal4\n",
+ SectionFlags::Mergeable);
+ EightByteConstantSection = getUnnamedSection("\t.literal8\n",
SectionFlags::Mergeable);
- EightByteConstantSection_ = getUnnamedSection("\t.literal8\n",
- SectionFlags::Mergeable);
// Note: 16-byte constant section is subtarget specific and should be provided
- // there.
+ // there, if needed.
+ SixteenByteConstantSection = 0;
ReadOnlySection_ = getUnnamedSection("\t.const\n", SectionFlags::None);
@@ -139,11 +140,11 @@
unsigned Size = TD->getABITypeSize(Ty);
if (Size == 4)
- return FourByteConstantSection_;
+ return FourByteConstantSection;
else if (Size == 8)
- return EightByteConstantSection_;
- else if (Size == 16 && SixteenByteConstantSection_)
- return SixteenByteConstantSection_;
+ return EightByteConstantSection;
+ else if (Size == 16 && SixteenByteConstantSection)
+ return SixteenByteConstantSection;
return getReadOnlySection_();
}
Modified: llvm/trunk/lib/Target/Mips/MipsTargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsTargetAsmInfo.cpp?rev=56580&r1=56579&r2=56580&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsTargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsTargetAsmInfo.cpp Wed Sep 24 17:18:54 2008
@@ -34,7 +34,6 @@
ZeroDirective = "\t.space\t";
BSSSection = "\t.section\t.bss";
CStringSection = ".rodata.str";
- FourByteConstantSection = "\t.section\t.rodata.cst4,\"aM\", at progbits,4";
if (!Subtarget->hasABICall()) {
JumpTableDirective = "\t.word\t";
Modified: llvm/trunk/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCTargetAsmInfo.cpp?rev=56580&r1=56579&r2=56580&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCTargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCTargetAsmInfo.cpp Wed Sep 24 17:18:54 2008
@@ -43,8 +43,6 @@
ConstantPoolSection = "\t.const\t";
JumpTableDataSection = ".const";
CStringSection = "\t.cstring";
- FourByteConstantSection = "\t.literal4\n";
- EightByteConstantSection = "\t.literal8\n";
ReadOnlySection = "\t.const\n";
if (TM.getRelocationModel() == Reloc::Static) {
StaticCtorsSection = ".constructor";
@@ -140,9 +138,6 @@
DwarfMacInfoSection = "\t.section\t.debug_macinfo,\"\", at progbits";
ReadOnlySection = "\t.section\t.rodata";
- FourByteConstantSection = "\t.section\t.rodata.cst4,\"aM\", at progbits,4";
- EightByteConstantSection = "\t.section\t.rodata.cst8,\"aM\", at progbits,8";
- SixteenByteConstantSection = "\t.section\t.rodata.cst16,\"aM\", at progbits,16";
PCSymbol = ".";
// Set up DWARF directives
Modified: llvm/trunk/lib/Target/TargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetAsmInfo.cpp?rev=56580&r1=56579&r2=56580&view=diff
==============================================================================
--- llvm/trunk/lib/Target/TargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/TargetAsmInfo.cpp Wed Sep 24 17:18:54 2008
@@ -81,12 +81,6 @@
CStringSection_(0),
StaticCtorsSection("\t.section .ctors,\"aw\", at progbits"),
StaticDtorsSection("\t.section .dtors,\"aw\", at progbits"),
- FourByteConstantSection(0),
- FourByteConstantSection_(0),
- EightByteConstantSection(0),
- EightByteConstantSection_(0),
- SixteenByteConstantSection(0),
- SixteenByteConstantSection_(0),
GlobalDirective("\t.globl\t"),
SetDirective(0),
LCOMMDirective(0),
Modified: llvm/trunk/lib/Target/X86/X86TargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86TargetAsmInfo.cpp?rev=56580&r1=56579&r2=56580&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86TargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86TargetAsmInfo.cpp Wed Sep 24 17:18:54 2008
@@ -145,13 +145,10 @@
ConstantPoolSection = "\t.const\n";
JumpTableDataSection = "\t.const\n";
CStringSection = "\t.cstring";
- FourByteConstantSection = "\t.literal4\n";
- EightByteConstantSection = "\t.literal8\n";
// FIXME: Why don't always use this section?
if (is64Bit) {
- SixteenByteConstantSection = "\t.literal16\n";
- SixteenByteConstantSection_ = getUnnamedSection("\t.literal16\n",
- SectionFlags::Mergeable);
+ SixteenByteConstantSection = getUnnamedSection("\t.literal16\n",
+ SectionFlags::Mergeable);
}
ReadOnlySection = "\t.const\n";
@@ -233,9 +230,6 @@
X86TargetAsmInfo(TM), ELFTargetAsmInfo(TM) {
ReadOnlySection = ".rodata";
- FourByteConstantSection = "\t.section\t.rodata.cst4,\"aM\", at progbits,4";
- EightByteConstantSection = "\t.section\t.rodata.cst8,\"aM\", at progbits,8";
- SixteenByteConstantSection = "\t.section\t.rodata.cst16,\"aM\", at progbits,16";
CStringSection = ".rodata.str";
PrivateGlobalPrefix = ".L";
WeakRefDirective = "\t.weak\t";
More information about the llvm-commits
mailing list