[lld] e8a85b2 - [ELF] Remove unused functions. NFC (#195546)

via llvm-commits llvm-commits at lists.llvm.org
Sun May 3 13:19:20 PDT 2026


Author: Fangrui Song
Date: 2026-05-03T13:19:16-07:00
New Revision: e8a85b26a9989d8eb929f6e0b7c5d05cfc927e04

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

LOG: [ELF] Remove unused functions. NFC (#195546)

Added: 
    

Modified: 
    lld/ELF/InputSection.h
    lld/ELF/Target.h

Removed: 
    


################################################################################
diff  --git a/lld/ELF/InputSection.h b/lld/ELF/InputSection.h
index 061af258ce8a4..771e8a50e285b 100644
--- a/lld/ELF/InputSection.h
+++ b/lld/ELF/InputSection.h
@@ -209,11 +209,6 @@ class InputSectionBase : public SectionBase {
     bytesDropped += num;
   }
 
-  void push_back(uint64_t num) {
-    assert(bytesDropped >= num);
-    bytesDropped -= num;
-  }
-
   mutable const uint8_t *content_;
   uint64_t size;
 

diff  --git a/lld/ELF/Target.h b/lld/ELF/Target.h
index 1904892fdd2cf..c9b2af07149e0 100644
--- a/lld/ELF/Target.h
+++ b/lld/ELF/Target.h
@@ -42,7 +42,6 @@ class TargetInfo {
   virtual void writeGotPlt(uint8_t *buf, const Symbol &s) const {}
   virtual void writeIgotPlt(uint8_t *buf, const Symbol &s) const {}
   virtual int64_t getImplicitAddend(const uint8_t *buf, RelType type) const;
-  virtual int getTlsGdRelaxSkip(RelType type) const { return 1; }
 
   // If lazy binding is supported, the first entry of the PLT has code
   // to call the dynamic linker to resolve PLT entries the first time


        


More information about the llvm-commits mailing list