diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-05 20:49:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-05 20:49:52 +0000 |
commit | cafbdc5c095f4cc84e74e0286651cf8daa6efa2a (patch) | |
tree | f56e0dd70e4af5041ae25cb0f0257e0560b0084e | |
parent | b2ab7f5ec3438293a2cead51c8bd01254e79317d (diff) | |
download | external_llvm-cafbdc5c095f4cc84e74e0286651cf8daa6efa2a.zip external_llvm-cafbdc5c095f4cc84e74e0286651cf8daa6efa2a.tar.gz external_llvm-cafbdc5c095f4cc84e74e0286651cf8daa6efa2a.tar.bz2 |
remove the 'DataSectionStartSuffix' and 'TextSectionStartSuffix' knobs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78242 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Target/TargetAsmInfo.h | 14 | ||||
-rw-r--r-- | lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 28 | ||||
-rw-r--r-- | lib/Target/TargetAsmInfo.cpp | 2 | ||||
-rw-r--r-- | lib/Target/X86/X86TargetAsmInfo.cpp | 4 |
4 files changed, 13 insertions, 35 deletions
diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h index 2efec32..e24302b 100644 --- a/include/llvm/Target/TargetAsmInfo.h +++ b/include/llvm/Target/TargetAsmInfo.h @@ -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; } diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 69bc5ed..3102bda 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -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); - - O << TAI->getSwitchToSectionDirective() - << CurrentSection->getName() << FlagsStr.c_str(); - } else { - O << CurrentSection->getName(); - } - O << TAI->getDataSectionStartSuffix() << '\n'; + 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() << '\n'; + } else { + O << CurrentSection->getName() << '\n'; } } diff --git a/lib/Target/TargetAsmInfo.cpp b/lib/Target/TargetAsmInfo.cpp index 5be7693..5f20ea0 100644 --- a/lib/Target/TargetAsmInfo.cpp +++ b/lib/Target/TargetAsmInfo.cpp @@ -55,8 +55,6 @@ TargetAsmInfo::TargetAsmInfo() { AlignmentIsInBytes = true; TextAlignFillValue = 0; SwitchToSectionDirective = "\t.section\t"; - TextSectionStartSuffix = ""; - DataSectionStartSuffix = ""; JumpTableDirective = 0; GlobalDirective = "\t.globl\t"; SetDirective = 0; diff --git a/lib/Target/X86/X86TargetAsmInfo.cpp b/lib/Target/X86/X86TargetAsmInfo.cpp index 3a5772c..297ebf5 100644 --- a/lib/Target/X86/X86TargetAsmInfo.cpp +++ b/lib/Target/X86/X86TargetAsmInfo.cpp @@ -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. |