[llvm-commits] [llvm] r78096 - in /llvm/trunk: include/llvm/Target/TargetAsmInfo.h lib/CodeGen/AsmPrinter/AsmPrinter.cpp lib/Target/TargetAsmInfo.cpp lib/Target/X86/X86TargetAsmInfo.cpp

Chris Lattner sabre at nondot.org
Tue Aug 4 13:09:45 PDT 2009


Author: lattner
Date: Tue Aug  4 15:09:41 2009
New Revision: 78096

URL: http://llvm.org/viewvc/llvm-project?rev=78096&view=rev
Log:
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.

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

Modified: llvm/trunk/include/llvm/Target/TargetAsmInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetAsmInfo.h?rev=78096&r1=78095&r2=78096&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Target/TargetAsmInfo.h (original)
+++ llvm/trunk/include/llvm/Target/TargetAsmInfo.h Tue Aug  4 15:09:41 2009
@@ -198,10 +198,6 @@
     /// 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 @@
     const char *getDataSectionStartSuffix() const {
       return DataSectionStartSuffix;
     }
-    const char *getSectionEndDirectiveSuffix() const {
-      return SectionEndDirectiveSuffix;
-    }
     const char *getGlobalDirective() const {
       return GlobalDirective;
     }

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp?rev=78096&r1=78095&r2=78096&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp Tue Aug  4 15:09:41 2009
@@ -90,10 +90,6 @@
   // 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) {

Modified: llvm/trunk/lib/Target/TargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetAsmInfo.cpp?rev=78096&r1=78095&r2=78096&view=diff

==============================================================================
--- llvm/trunk/lib/Target/TargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/TargetAsmInfo.cpp Tue Aug  4 15:09:41 2009
@@ -57,7 +57,6 @@
   SwitchToSectionDirective = "\t.section\t";
   TextSectionStartSuffix = "";
   DataSectionStartSuffix = "";
-  SectionEndDirectiveSuffix = 0;
   JumpTableDirective = 0;
   GlobalDirective = "\t.globl\t";
   SetDirective = 0;

Modified: llvm/trunk/lib/Target/X86/X86TargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86TargetAsmInfo.cpp?rev=78096&r1=78095&r2=78096&view=diff

==============================================================================
--- llvm/trunk/lib/Target/X86/X86TargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86TargetAsmInfo.cpp Tue Aug  4 15:09:41 2009
@@ -134,7 +134,6 @@
   SwitchToSectionDirective = "";
   TextSectionStartSuffix = "\tSEGMENT PARA 'CODE'";
   DataSectionStartSuffix = "\tSEGMENT PARA 'DATA'";
-  SectionEndDirectiveSuffix = "\tends\n";
 }
 
 // Instantiate default implementation.





More information about the llvm-commits mailing list