mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
remove the 'DataSectionStartSuffix' and 'TextSectionStartSuffix' knobs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78242 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b2ab7f5ec3
commit
cafbdc5c09
@ -190,14 +190,6 @@ namespace llvm {
|
||||
/// this.
|
||||
const char *SwitchToSectionDirective; // Defaults to "\t.section\t"
|
||||
|
||||
/// TextSectionStartSuffix - This is printed after each start of section
|
||||
/// directive for text sections.
|
||||
const char *TextSectionStartSuffix; // Defaults to "".
|
||||
|
||||
/// DataSectionStartSuffix - This is printed after each start of section
|
||||
/// directive for data sections.
|
||||
const char *DataSectionStartSuffix; // Defaults to "".
|
||||
|
||||
/// JumpTableDirective - if non-null, the directive to emit before a jump
|
||||
/// table.
|
||||
const char *JumpTableDirective;
|
||||
@ -444,12 +436,6 @@ namespace llvm {
|
||||
const char *getSwitchToSectionDirective() const {
|
||||
return SwitchToSectionDirective;
|
||||
}
|
||||
const char *getTextSectionStartSuffix() const {
|
||||
return TextSectionStartSuffix;
|
||||
}
|
||||
const char *getDataSectionStartSuffix() const {
|
||||
return DataSectionStartSuffix;
|
||||
}
|
||||
const char *getGlobalDirective() const {
|
||||
return GlobalDirective;
|
||||
}
|
||||
|
@ -92,21 +92,19 @@ void AsmPrinter::SwitchToSection(const MCSection *NS) {
|
||||
|
||||
CurrentSection = NS;
|
||||
|
||||
if (NS != 0) {
|
||||
// If section is named we need to switch into it via special '.section'
|
||||
// directive and also append funky flags. Otherwise - section name is just
|
||||
// some magic assembler directive.
|
||||
if (!NS->isDirective()) {
|
||||
SmallString<32> FlagsStr;
|
||||
|
||||
getObjFileLowering().getSectionFlagsAsString(NS->getKind(), FlagsStr);
|
||||
if (NS == 0) return;
|
||||
|
||||
// If section is named we need to switch into it via special '.section'
|
||||
// directive and also append funky flags. Otherwise - section name is just
|
||||
// some magic assembler directive.
|
||||
if (!NS->isDirective()) {
|
||||
SmallString<32> FlagsStr;
|
||||
getObjFileLowering().getSectionFlagsAsString(NS->getKind(), FlagsStr);
|
||||
|
||||
O << TAI->getSwitchToSectionDirective()
|
||||
<< CurrentSection->getName() << FlagsStr.c_str();
|
||||
} else {
|
||||
O << CurrentSection->getName();
|
||||
}
|
||||
O << TAI->getDataSectionStartSuffix() << '\n';
|
||||
O << TAI->getSwitchToSectionDirective()
|
||||
<< CurrentSection->getName() << FlagsStr.c_str() << '\n';
|
||||
} else {
|
||||
O << CurrentSection->getName() << '\n';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -55,8 +55,6 @@ TargetAsmInfo::TargetAsmInfo() {
|
||||
AlignmentIsInBytes = true;
|
||||
TextAlignFillValue = 0;
|
||||
SwitchToSectionDirective = "\t.section\t";
|
||||
TextSectionStartSuffix = "";
|
||||
DataSectionStartSuffix = "";
|
||||
JumpTableDirective = 0;
|
||||
GlobalDirective = "\t.globl\t";
|
||||
SetDirective = 0;
|
||||
|
@ -130,10 +130,6 @@ X86WinTargetAsmInfo::X86WinTargetAsmInfo(const X86TargetMachine &TM):
|
||||
HasSingleParameterDotFile = false;
|
||||
|
||||
AlignmentIsInBytes = true;
|
||||
|
||||
SwitchToSectionDirective = "";
|
||||
TextSectionStartSuffix = "\tSEGMENT PARA 'CODE'";
|
||||
DataSectionStartSuffix = "\tSEGMENT PARA 'DATA'";
|
||||
}
|
||||
|
||||
// Instantiate default implementation.
|
||||
|
Loading…
Reference in New Issue
Block a user