[llvm] f2c6add - [MC] Remove remnant code related to pending labels

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 3 16:47:23 PDT 2024


Author: Fangrui Song
Date: 2024-07-03T16:47:19-07:00
New Revision: f2c6add926625459ec52c9f36b29c8dd05d57c7d

URL: https://github.com/llvm/llvm-project/commit/f2c6add926625459ec52c9f36b29c8dd05d57c7d
DIFF: https://github.com/llvm/llvm-project/commit/f2c6add926625459ec52c9f36b29c8dd05d57c7d.diff

LOG: [MC] Remove remnant code related to pending labels

Follow-up to 485d7eaefd93c4f6bc8c51c9a169ffb22ce3a898

Added: 
    

Modified: 
    llvm/include/llvm/MC/MCSection.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/MC/MCSection.h b/llvm/include/llvm/MC/MCSection.h
index 54f7eb1d0fcfc..b013eca1d63fc 100644
--- a/llvm/include/llvm/MC/MCSection.h
+++ b/llvm/include/llvm/MC/MCSection.h
@@ -115,15 +115,6 @@ class MCSection {
   // subsections.
   SmallVector<std::pair<unsigned, FragList>, 1> Subsections;
 
-  /// State for tracking labels that don't yet have Fragments
-  struct PendingLabel {
-    MCSymbol* Sym;
-    unsigned Subsection;
-    PendingLabel(MCSymbol* Sym, unsigned Subsection = 0)
-      : Sym(Sym), Subsection(Subsection) {}
-  };
-  SmallVector<PendingLabel, 2> PendingLabels;
-
 protected:
   // TODO Make Name private when possible.
   StringRef Name;
@@ -208,10 +199,6 @@ class MCSection {
   bool isVirtualSection() const { return IsVirtual; }
 
   virtual StringRef getVirtualSectionKind() const;
-
-  /// Add a pending label for the requested subsection. This label will be
-  /// associated with a fragment in flushPendingLabels()
-  void addPendingLabel(MCSymbol* label, unsigned Subsection = 0);
 };
 
 } // end namespace llvm


        


More information about the llvm-commits mailing list