[llvm] r231682 - Delete dead code. NFC.

Rafael Espindola rafael.espindola at gmail.com
Mon Mar 9 11:48:29 PDT 2015


Author: rafael
Date: Mon Mar  9 13:48:29 2015
New Revision: 231682

URL: http://llvm.org/viewvc/llvm-project?rev=231682&view=rev
Log:
Delete dead code. NFC.

Modified:
    llvm/trunk/include/llvm/MC/MCSection.h
    llvm/trunk/include/llvm/MC/MCSectionCOFF.h
    llvm/trunk/include/llvm/MC/MCSectionELF.h
    llvm/trunk/include/llvm/MC/MCSectionMachO.h
    llvm/trunk/lib/Target/NVPTX/NVPTXSection.h

Modified: llvm/trunk/include/llvm/MC/MCSection.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCSection.h?rev=231682&r1=231681&r2=231682&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCSection.h (original)
+++ llvm/trunk/include/llvm/MC/MCSection.h Mon Mar  9 13:48:29 2015
@@ -55,7 +55,6 @@ namespace llvm {
     // Convenience routines to get label names for the beginning/end of a
     // section.
     virtual std::string getLabelBeginName() const = 0;
-    virtual std::string getLabelEndName() const = 0;
 
     /// isBaseAddressKnownZero - Return true if we know that this section will
     /// get a base address of zero.  In cases where we know that this is true we

Modified: llvm/trunk/include/llvm/MC/MCSectionCOFF.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCSectionCOFF.h?rev=231682&r1=231681&r2=231682&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCSectionCOFF.h (original)
+++ llvm/trunk/include/llvm/MC/MCSectionCOFF.h Mon Mar  9 13:48:29 2015
@@ -63,9 +63,6 @@ class MCSymbol;
     std::string getLabelBeginName() const override {
       return SectionName.str() + "_begin";
     }
-    std::string getLabelEndName() const override {
-      return SectionName.str() + "_end";
-    }
     unsigned getCharacteristics() const { return Characteristics; }
     MCSymbol *getCOMDATSymbol() const { return COMDATSymbol; }
     int getSelection() const { return Selection; }

Modified: llvm/trunk/include/llvm/MC/MCSectionELF.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCSectionELF.h?rev=231682&r1=231681&r2=231682&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCSectionELF.h (original)
+++ llvm/trunk/include/llvm/MC/MCSectionELF.h Mon Mar  9 13:48:29 2015
@@ -70,11 +70,6 @@ public:
       return (SectionName.str() + '_' + Group->getName() + "_begin").str();
     return SectionName.str() + "_begin";
   }
-  std::string getLabelEndName() const override {
-    if (Group)
-      return (SectionName.str() + '_' + Group->getName() + "_end").str();
-    return SectionName.str() + "_end";
-  }
   unsigned getType() const { return Type; }
   unsigned getFlags() const { return Flags; }
   unsigned getEntrySize() const { return EntrySize; }

Modified: llvm/trunk/include/llvm/MC/MCSectionMachO.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCSectionMachO.h?rev=231682&r1=231681&r2=231682&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCSectionMachO.h (original)
+++ llvm/trunk/include/llvm/MC/MCSectionMachO.h Mon Mar  9 13:48:29 2015
@@ -57,10 +57,6 @@ public:
     return StringRef(getSegmentName().str() + getSectionName().str() + "_begin");
   }
 
-  std::string getLabelEndName() const override {
-    return StringRef(getSegmentName().str() + getSectionName().str() + "_end");
-  }
-
   unsigned getTypeAndAttributes() const { return TypeAndAttributes; }
   unsigned getStubSize() const { return Reserved2; }
 

Modified: llvm/trunk/lib/Target/NVPTX/NVPTXSection.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/NVPTX/NVPTXSection.h?rev=231682&r1=231681&r2=231682&view=diff
==============================================================================
--- llvm/trunk/lib/Target/NVPTX/NVPTXSection.h (original)
+++ llvm/trunk/lib/Target/NVPTX/NVPTXSection.h Mon Mar  9 13:48:29 2015
@@ -40,7 +40,6 @@ public:
   bool UseCodeAlign() const override { return false; }
   bool isVirtualSection() const override { return false; }
   std::string getLabelBeginName() const override { return ""; }
-  std::string getLabelEndName() const override { return ""; }
 };
 
 } // end namespace llvm





More information about the llvm-commits mailing list