Delete dead code. NFC.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 9 Mar 2015 18:48:29 +0000 (18:48 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 9 Mar 2015 18:48:29 +0000 (18:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231682 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 8aec9c82e3281c19f264f13d3101d3cec967bc4c..935fe921670f0d456d03fa38fe3b6356bff659e3 100644 (file)
@@ -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
index 0bbf3696686ebe5374ced88e8b2b5899c9ad01a3..6914f2e77684746dbac3d69b6b474f1fbc82f091 100644 (file)
@@ -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; }
index 6d864b4a45be310f6d0a8c55faa71dd51cbd06ef..a50e542fd8594f0bfeb2f75ccf9a655f5f0f942e 100644 (file)
@@ -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; }
index a5a2089a2974fc59d36bd68cd5addc1960b25ad4..725106c766cf815db39ebb243670b36a0a7a32b1 100644 (file)
@@ -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; }
 
index f1d3cb4da51ba0dd4c7a0b37084ab167ced9b6b0..8bc6336ff73292ab2d63b89e09a7eed1187055c5 100644 (file)
@@ -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