REmove dead fields of TAI.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77820 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2009-08-01 22:40:22 +00:00
parent c19ee610f6
commit b80610cd13
12 changed files with 0 additions and 51 deletions

View File

@@ -35,12 +35,6 @@ namespace llvm {
// Properties to be set by the target writer, used to configure asm printer. // Properties to be set by the target writer, used to configure asm printer.
// //
/// BSSSection - Section directive for uninitialized data. Null if this
/// target doesn't support a BSS section.
///
/// FIXME: REMOVE.
const char *BSSSection; // Default to ".bss".
/// ZeroFillDirective - Directive for emitting a global to the ZeroFill /// ZeroFillDirective - Directive for emitting a global to the ZeroFill
/// section on this target. Null if this target doesn't support zerofill. /// section on this target. Null if this target doesn't support zerofill.
const char *ZeroFillDirective; // Default is null. const char *ZeroFillDirective; // Default is null.
@@ -212,10 +206,6 @@ namespace llvm {
/// section with the section name and this suffix printed. /// section with the section name and this suffix printed.
const char *SectionEndDirectiveSuffix;// Defaults to null. const char *SectionEndDirectiveSuffix;// Defaults to null.
/// ConstantPoolSection - This is the section that we SwitchToSection right
/// before emitting the constant pool for a function.
const char *ConstantPoolSection; // Defaults to "\t.section .rodata"
/// JumpTableDataSection - This is the section that we SwitchToSection right /// JumpTableDataSection - This is the section that we SwitchToSection right
/// before emitting the jump tables for a function when the relocation model /// before emitting the jump tables for a function when the relocation model
/// is not PIC. /// is not PIC.
@@ -225,13 +215,6 @@ namespace llvm {
/// table. /// table.
const char *JumpTableDirective; const char *JumpTableDirective;
/// CStringSection - If not null, this allows for special handling of
/// cstring constants (null terminated string that does not contain any
/// other null bytes) on this target. This is commonly supported as
/// ".cstring".
/// FIXME: REMOVE.
const char *CStringSection; // Defaults to NULL
/// StaticCtorsSection - This is the directive that is emitted to switch to /// StaticCtorsSection - This is the directive that is emitted to switch to
/// a section to emit the static constructor list. /// a section to emit the static constructor list.
/// Defaults to "\t.section .ctors,\"aw\",@progbits". /// Defaults to "\t.section .ctors,\"aw\",@progbits".
@@ -450,9 +433,6 @@ namespace llvm {
// Accessors. // Accessors.
// //
const char *getBSSSection() const {
return BSSSection;
}
const char *getZeroFillDirective() const { const char *getZeroFillDirective() const {
return ZeroFillDirective; return ZeroFillDirective;
} }
@@ -558,15 +538,9 @@ namespace llvm {
const char *getSectionEndDirectiveSuffix() const { const char *getSectionEndDirectiveSuffix() const {
return SectionEndDirectiveSuffix; return SectionEndDirectiveSuffix;
} }
const char *getConstantPoolSection() const {
return ConstantPoolSection;
}
const char *getJumpTableDataSection() const { const char *getJumpTableDataSection() const {
return JumpTableDataSection; return JumpTableDataSection;
} }
const char *getCStringSection() const {
return CStringSection;
}
const char *getStaticCtorsSection() const { const char *getStaticCtorsSection() const {
return StaticCtorsSection; return StaticCtorsSection;
} }

View File

@@ -62,7 +62,6 @@ ARMELFTargetAsmInfo::ARMELFTargetAsmInfo(const ARMBaseTargetMachine &TM):
NeedsSet = false; NeedsSet = false;
HasLEB128 = true; HasLEB128 = true;
AbsoluteDebugSectionOffsets = true; AbsoluteDebugSectionOffsets = true;
CStringSection = ".rodata.str";
PrivateGlobalPrefix = ".L"; PrivateGlobalPrefix = ".L";
WeakRefDirective = "\t.weak\t"; WeakRefDirective = "\t.weak\t";
SetDirective = "\t.set\t"; SetDirective = "\t.set\t";

View File

@@ -32,7 +32,6 @@ namespace llvm {
BaseTAI::AlignmentIsInBytes = false; BaseTAI::AlignmentIsInBytes = false;
BaseTAI::Data64bitsDirective = 0; BaseTAI::Data64bitsDirective = 0;
BaseTAI::CommentString = "@"; BaseTAI::CommentString = "@";
BaseTAI::ConstantPoolSection = "\t.text\n";
BaseTAI::COMMDirectiveTakesAlignment = false; BaseTAI::COMMDirectiveTakesAlignment = false;
BaseTAI::InlineAsmStart = "@ InlineAsm Start"; BaseTAI::InlineAsmStart = "@ InlineAsm Start";
BaseTAI::InlineAsmEnd = "@ InlineAsm End"; BaseTAI::InlineAsmEnd = "@ InlineAsm End";

View File

@@ -26,8 +26,6 @@ SPULinuxTargetAsmInfo::SPULinuxTargetAsmInfo(const SPUTargetMachine &TM) :
CommentString = "#"; CommentString = "#";
GlobalPrefix = ""; GlobalPrefix = "";
PrivateGlobalPrefix = ".L"; PrivateGlobalPrefix = ".L";
// This corresponds to what the gcc SPU compiler emits, for consistency.
CStringSection = ".rodata.str";
// Has leb128, .loc and .file // Has leb128, .loc and .file
HasLEB128 = true; HasLEB128 = true;

View File

@@ -49,9 +49,7 @@ DarwinTargetAsmInfo::DarwinTargetAsmInfo(const TargetMachine &TM)
HiddenDirective = "\t.private_extern "; HiddenDirective = "\t.private_extern ";
// Sections: // Sections:
CStringSection = "\t.cstring";
JumpTableDataSection = "\t.const"; JumpTableDataSection = "\t.const";
BSSSection = 0;
if (TM.getRelocationModel() == Reloc::Static) { if (TM.getRelocationModel() == Reloc::Static) {
StaticCtorsSection = ".constructor"; StaticCtorsSection = ".constructor";

View File

@@ -27,8 +27,6 @@ MipsTargetAsmInfo::MipsTargetAsmInfo(const MipsTargetMachine &TM)
JumpTableDataSection = "\t.rdata"; JumpTableDataSection = "\t.rdata";
CommentString = "#"; CommentString = "#";
ZeroDirective = "\t.space\t"; ZeroDirective = "\t.space\t";
BSSSection = "\t.section\t.bss";
CStringSection = ".rodata.str";
if (!TM.getSubtarget<MipsSubtarget>().hasABICall()) if (!TM.getSubtarget<MipsSubtarget>().hasABICall())
JumpTableDirective = "\t.word\t"; JumpTableDirective = "\t.word\t";

View File

@@ -23,7 +23,6 @@ PPCDarwinTargetAsmInfo::PPCDarwinTargetAsmInfo(const PPCTargetMachine &TM) :
PPCTargetAsmInfo<DarwinTargetAsmInfo>(TM) { PPCTargetAsmInfo<DarwinTargetAsmInfo>(TM) {
PCSymbol = "."; PCSymbol = ".";
CommentString = ";"; CommentString = ";";
ConstantPoolSection = "\t.const\t";
UsedDirective = "\t.no_dead_strip\t"; UsedDirective = "\t.no_dead_strip\t";
SupportsExceptionHandling = true; SupportsExceptionHandling = true;
@@ -46,14 +45,10 @@ PPCLinuxTargetAsmInfo::PPCLinuxTargetAsmInfo(const PPCTargetMachine &TM) :
CommentString = "#"; CommentString = "#";
GlobalPrefix = ""; GlobalPrefix = "";
PrivateGlobalPrefix = ".L"; PrivateGlobalPrefix = ".L";
ConstantPoolSection = "\t.section .rodata.cst4\t";
JumpTableDataSection = ".section .rodata.cst4";
CStringSection = ".rodata.str";
StaticCtorsSection = ".section\t.ctors,\"aw\",@progbits"; StaticCtorsSection = ".section\t.ctors,\"aw\",@progbits";
StaticDtorsSection = ".section\t.dtors,\"aw\",@progbits"; StaticDtorsSection = ".section\t.dtors,\"aw\",@progbits";
UsedDirective = "\t# .no_dead_strip\t"; UsedDirective = "\t# .no_dead_strip\t";
WeakRefDirective = "\t.weak\t"; WeakRefDirective = "\t.weak\t";
BSSSection = "\t.section\t\".sbss\",\"aw\",@nobits";
// Debug Information // Debug Information
AbsoluteDebugSectionOffsets = true; AbsoluteDebugSectionOffsets = true;

View File

@@ -22,9 +22,7 @@ SparcELFTargetAsmInfo::SparcELFTargetAsmInfo(const TargetMachine &TM)
Data64bitsDirective = 0; // .xword is only supported by V9. Data64bitsDirective = 0; // .xword is only supported by V9.
ZeroDirective = "\t.skip\t"; ZeroDirective = "\t.skip\t";
CommentString = "!"; CommentString = "!";
ConstantPoolSection = "\t.section \".rodata\",#alloc\n";
COMMDirectiveTakesAlignment = true; COMMDirectiveTakesAlignment = true;
CStringSection=".rodata.str";
} }

View File

@@ -20,7 +20,6 @@ SystemZTargetAsmInfo::SystemZTargetAsmInfo(const SystemZTargetMachine &TM)
: ELFTargetAsmInfo(TM) { : ELFTargetAsmInfo(TM) {
AlignmentIsInBytes = true; AlignmentIsInBytes = true;
CStringSection = ".rodata.str";
PrivateGlobalPrefix = ".L"; PrivateGlobalPrefix = ".L";
WeakRefDirective = "\t.weak\t"; WeakRefDirective = "\t.weak\t";
SetDirective = "\t.set\t"; SetDirective = "\t.set\t";

View File

@@ -29,7 +29,6 @@
using namespace llvm; using namespace llvm;
TargetAsmInfo::TargetAsmInfo(const TargetMachine &tm) : TM(tm) { TargetAsmInfo::TargetAsmInfo(const TargetMachine &tm) : TM(tm) {
BSSSection = "\t.bss";
ZeroFillDirective = 0; ZeroFillDirective = 0;
NonexecutableStackDirective = 0; NonexecutableStackDirective = 0;
NeedsSet = false; NeedsSet = false;
@@ -70,10 +69,8 @@ TargetAsmInfo::TargetAsmInfo(const TargetMachine &tm) : TM(tm) {
TextSectionStartSuffix = ""; TextSectionStartSuffix = "";
DataSectionStartSuffix = ""; DataSectionStartSuffix = "";
SectionEndDirectiveSuffix = 0; SectionEndDirectiveSuffix = 0;
ConstantPoolSection = "\t.section .rodata";
JumpTableDataSection = "\t.section .rodata"; JumpTableDataSection = "\t.section .rodata";
JumpTableDirective = 0; JumpTableDirective = 0;
CStringSection = 0;
// FIXME: Flags are ELFish - replace with normal section stuff. // FIXME: Flags are ELFish - replace with normal section stuff.
StaticCtorsSection = "\t.section .ctors,\"aw\",@progbits"; StaticCtorsSection = "\t.section .ctors,\"aw\",@progbits";
StaticDtorsSection = "\t.section .dtors,\"aw\",@progbits"; StaticDtorsSection = "\t.section .dtors,\"aw\",@progbits";

View File

@@ -51,10 +51,6 @@ X86DarwinTargetAsmInfo::X86DarwinTargetAsmInfo(const X86TargetMachine &TM):
Data64bitsDirective = 0; // we can't emit a 64-bit unit Data64bitsDirective = 0; // we can't emit a 64-bit unit
ZeroDirective = "\t.space\t"; // ".space N" emits N zeros. ZeroDirective = "\t.space\t"; // ".space N" emits N zeros.
ZeroFillDirective = "\t.zerofill\t"; // Uses .zerofill ZeroFillDirective = "\t.zerofill\t"; // Uses .zerofill
if (TM.getRelocationModel() != Reloc::Static)
ConstantPoolSection = "\t.const_data";
else
ConstantPoolSection = "\t.const\n";
LCOMMDirective = "\t.lcomm\t"; LCOMMDirective = "\t.lcomm\t";
// Leopard and above support aligned common symbols. // Leopard and above support aligned common symbols.
@@ -110,7 +106,6 @@ X86DarwinTargetAsmInfo::getEHGlobalPrefix() const {
X86ELFTargetAsmInfo::X86ELFTargetAsmInfo(const X86TargetMachine &TM) : X86ELFTargetAsmInfo::X86ELFTargetAsmInfo(const X86TargetMachine &TM) :
X86TargetAsmInfo<ELFTargetAsmInfo>(TM) { X86TargetAsmInfo<ELFTargetAsmInfo>(TM) {
CStringSection = ".rodata.str";
PrivateGlobalPrefix = ".L"; PrivateGlobalPrefix = ".L";
WeakRefDirective = "\t.weak\t"; WeakRefDirective = "\t.weak\t";
SetDirective = "\t.set\t"; SetDirective = "\t.set\t";

View File

@@ -18,7 +18,6 @@ XCoreTargetAsmInfo::XCoreTargetAsmInfo(const TargetMachine &TM)
Data64bitsDirective = 0; Data64bitsDirective = 0;
ZeroDirective = "\t.space\t"; ZeroDirective = "\t.space\t";
CommentString = "#"; CommentString = "#";
ConstantPoolSection = "\t.section\t.cp.rodata,\"ac\",@progbits";
JumpTableDataSection = "\t.section\t.dp.data,\"awd\",@progbits"; JumpTableDataSection = "\t.section\t.dp.data,\"awd\",@progbits";
PrivateGlobalPrefix = ".L"; PrivateGlobalPrefix = ".L";
AscizDirective = ".asciiz"; AscizDirective = ".asciiz";