[lld] [ELF] Remove unused functions. NFC (PR #195546)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun May 3 13:19:15 PDT 2026
https://github.com/MaskRay created https://github.com/llvm/llvm-project/pull/195546
None
>From a46264af8c1b5bb0b70f7db65916f35c4b11d9b9 Mon Sep 17 00:00:00 2001
From: Fangrui Song <i at maskray.me>
Date: Sun, 3 May 2026 13:04:01 -0700
Subject: [PATCH] [ELF] Remove unused functions. NFC
---
lld/ELF/InputSection.h | 5 -----
lld/ELF/Target.h | 1 -
2 files changed, 6 deletions(-)
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