mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-28 06:29:45 +00:00
remove more bits of small section support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76937 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d94061f123
commit
ad733cd851
@ -158,21 +158,6 @@ namespace llvm {
|
|||||||
/// jump tables).
|
/// jump tables).
|
||||||
const Section *ReadOnlySection; // Defaults to NULL
|
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.
|
/// TLSDataSection - Section directive for Thread Local data.
|
||||||
///
|
///
|
||||||
const Section *TLSDataSection; // Defaults to ".tdata".
|
const Section *TLSDataSection; // Defaults to ".tdata".
|
||||||
@ -660,15 +645,6 @@ namespace llvm {
|
|||||||
const Section *getReadOnlySection() const {
|
const Section *getReadOnlySection() const {
|
||||||
return ReadOnlySection;
|
return ReadOnlySection;
|
||||||
}
|
}
|
||||||
const Section *getSmallDataSection() const {
|
|
||||||
return SmallDataSection;
|
|
||||||
}
|
|
||||||
const Section *getSmallBSSSection() const {
|
|
||||||
return SmallBSSSection;
|
|
||||||
}
|
|
||||||
const Section *getSmallRODataSection() const {
|
|
||||||
return SmallRODataSection;
|
|
||||||
}
|
|
||||||
const Section *getTLSDataSection() const {
|
const Section *getTLSDataSection() const {
|
||||||
return TLSDataSection;
|
return TLSDataSection;
|
||||||
}
|
}
|
||||||
|
@ -17,8 +17,8 @@
|
|||||||
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
MipsTargetAsmInfo::MipsTargetAsmInfo(const MipsTargetMachine &TM):
|
MipsTargetAsmInfo::MipsTargetAsmInfo(const MipsTargetMachine &TM)
|
||||||
ELFTargetAsmInfo(TM) {
|
: ELFTargetAsmInfo(TM) {
|
||||||
|
|
||||||
AlignmentIsInBytes = false;
|
AlignmentIsInBytes = false;
|
||||||
COMMDirectiveTakesAlignment = true;
|
COMMDirectiveTakesAlignment = true;
|
||||||
@ -32,13 +32,8 @@ MipsTargetAsmInfo::MipsTargetAsmInfo(const MipsTargetMachine &TM):
|
|||||||
BSSSection = "\t.section\t.bss";
|
BSSSection = "\t.section\t.bss";
|
||||||
CStringSection = ".rodata.str";
|
CStringSection = ".rodata.str";
|
||||||
|
|
||||||
if (!TM.getSubtarget<MipsSubtarget>().hasABICall()) {
|
if (!TM.getSubtarget<MipsSubtarget>().hasABICall())
|
||||||
JumpTableDirective = "\t.word\t";
|
JumpTableDirective = "\t.word\t";
|
||||||
SmallDataSection = getNamedSection("\t.sdata", SectionFlags::Writeable);
|
else
|
||||||
SmallBSSSection = getNamedSection("\t.sbss",
|
|
||||||
SectionFlags::Writeable |
|
|
||||||
SectionFlags::BSS);
|
|
||||||
} else {
|
|
||||||
JumpTableDirective = "\t.gpword\t";
|
JumpTableDirective = "\t.gpword\t";
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -33,9 +33,6 @@ TargetAsmInfo::TargetAsmInfo(const TargetMachine &tm)
|
|||||||
BSSSection = "\t.bss";
|
BSSSection = "\t.bss";
|
||||||
BSSSection_ = 0;
|
BSSSection_ = 0;
|
||||||
ReadOnlySection = 0;
|
ReadOnlySection = 0;
|
||||||
SmallDataSection = 0;
|
|
||||||
SmallBSSSection = 0;
|
|
||||||
SmallRODataSection = 0;
|
|
||||||
TLSDataSection = 0;
|
TLSDataSection = 0;
|
||||||
TLSBSSSection = 0;
|
TLSBSSSection = 0;
|
||||||
ZeroFillDirective = 0;
|
ZeroFillDirective = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user