aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-04 20:09:41 +0000
committerChris Lattner <sabre@nondot.org>2009-08-04 20:09:41 +0000
commitf9c1ccf28020add0b3e1d633684debf3e3dc294f (patch)
treef5db4a65c1b758838be583d64d638c202ec841df
parentefb8e3e113cbf359d6a838c3b37fedc8305d19bb (diff)
rip out SectionEndDirectiveSuffix support, only uses by
the masm backend. If anyone cares about masm in the future, we'll have semantic sections it can hang off of. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78096 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Target/TargetAsmInfo.h7
-rw-r--r--lib/CodeGen/AsmPrinter/AsmPrinter.cpp4
-rw-r--r--lib/Target/TargetAsmInfo.cpp1
-rw-r--r--lib/Target/X86/X86TargetAsmInfo.cpp1
4 files changed, 0 insertions, 13 deletions
diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h
index 75a9053861..2efec329f3 100644
--- a/include/llvm/Target/TargetAsmInfo.h
+++ b/include/llvm/Target/TargetAsmInfo.h
@@ -198,10 +198,6 @@ namespace llvm {
/// directive for data sections.
const char *DataSectionStartSuffix; // Defaults to "".
- /// SectionEndDirectiveSuffix - If non-null, the asm printer will close each
- /// section with the section name and this suffix printed.
- const char *SectionEndDirectiveSuffix;// Defaults to null.
-
/// JumpTableDirective - if non-null, the directive to emit before a jump
/// table.
const char *JumpTableDirective;
@@ -454,9 +450,6 @@ namespace llvm {
const char *getDataSectionStartSuffix() const {
return DataSectionStartSuffix;
}
- const char *getSectionEndDirectiveSuffix() const {
- return SectionEndDirectiveSuffix;
- }
const char *getGlobalDirective() const {
return GlobalDirective;
}
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 742997aaaa..1de31bbc79 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -90,10 +90,6 @@ void AsmPrinter::SwitchToSection(const MCSection *NS) {
// If we're already in this section, we're done.
if (CurrentSection == NS) return;
- // Close the current section, if applicable.
- if (NS != 0 && TAI->getSectionEndDirectiveSuffix())
- O << NS->getName() << TAI->getSectionEndDirectiveSuffix() << '\n';
-
CurrentSection = NS;
if (NS != 0) {
diff --git a/lib/Target/TargetAsmInfo.cpp b/lib/Target/TargetAsmInfo.cpp
index 921bf20064..5be769319b 100644
--- a/lib/Target/TargetAsmInfo.cpp
+++ b/lib/Target/TargetAsmInfo.cpp
@@ -57,7 +57,6 @@ TargetAsmInfo::TargetAsmInfo() {
SwitchToSectionDirective = "\t.section\t";
TextSectionStartSuffix = "";
DataSectionStartSuffix = "";
- SectionEndDirectiveSuffix = 0;
JumpTableDirective = 0;
GlobalDirective = "\t.globl\t";
SetDirective = 0;
diff --git a/lib/Target/X86/X86TargetAsmInfo.cpp b/lib/Target/X86/X86TargetAsmInfo.cpp
index 761156759f..3a5772c19e 100644
--- a/lib/Target/X86/X86TargetAsmInfo.cpp
+++ b/lib/Target/X86/X86TargetAsmInfo.cpp
@@ -134,7 +134,6 @@ X86WinTargetAsmInfo::X86WinTargetAsmInfo(const X86TargetMachine &TM):
SwitchToSectionDirective = "";
TextSectionStartSuffix = "\tSEGMENT PARA 'CODE'";
DataSectionStartSuffix = "\tSEGMENT PARA 'DATA'";
- SectionEndDirectiveSuffix = "\tends\n";
}
// Instantiate default implementation.