rip out SectionEndDirectiveSuffix support, only uses by
authorChris Lattner <sabre@nondot.org>
Tue, 4 Aug 2009 20:09:41 +0000 (20:09 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 4 Aug 2009 20:09:41 +0000 (20:09 +0000)
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

include/llvm/Target/TargetAsmInfo.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/Target/TargetAsmInfo.cpp
lib/Target/X86/X86TargetAsmInfo.cpp

index 75a905386189620f9e1d093a2fb7649c8f5fb1eb..2efec329f30979d4eb07ddfe567c91ff46767c76 100644 (file)
@@ -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;
     }
index 742997aaaa55b5d6406b3a1bf24e782793bd8eda..1de31bbc795b5a02e4a339ed057d5f4af8175dd1 100644 (file)
@@ -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) {
index 921bf20064d341b36e29a8e7dff5e2d99802da83..5be769319bd208b3bf122030ac35642796555cd0 100644 (file)
@@ -57,7 +57,6 @@ TargetAsmInfo::TargetAsmInfo() {
   SwitchToSectionDirective = "\t.section\t";
   TextSectionStartSuffix = "";
   DataSectionStartSuffix = "";
-  SectionEndDirectiveSuffix = 0;
   JumpTableDirective = 0;
   GlobalDirective = "\t.globl\t";
   SetDirective = 0;
index 761156759f369c9f3e02dbb1bd9e81bd5e0ae585..3a5772c19ef4ca425573934f817895d98323aa4e 100644 (file)
@@ -134,7 +134,6 @@ X86WinTargetAsmInfo::X86WinTargetAsmInfo(const X86TargetMachine &TM):
   SwitchToSectionDirective = "";
   TextSectionStartSuffix = "\tSEGMENT PARA 'CODE'";
   DataSectionStartSuffix = "\tSEGMENT PARA 'DATA'";
-  SectionEndDirectiveSuffix = "\tends\n";
 }
 
 // Instantiate default implementation.