Skip to content

Commit e8a85b2

Browse files
authored
[ELF] Remove unused functions. NFC (llvm#195546)
1 parent 441a18d commit e8a85b2

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

lld/ELF/InputSection.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,6 @@ class InputSectionBase : public SectionBase {
209209
bytesDropped += num;
210210
}
211211

212-
void push_back(uint64_t num) {
213-
assert(bytesDropped >= num);
214-
bytesDropped -= num;
215-
}
216-
217212
mutable const uint8_t *content_;
218213
uint64_t size;
219214

lld/ELF/Target.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ class TargetInfo {
4242
virtual void writeGotPlt(uint8_t *buf, const Symbol &s) const {}
4343
virtual void writeIgotPlt(uint8_t *buf, const Symbol &s) const {}
4444
virtual int64_t getImplicitAddend(const uint8_t *buf, RelType type) const;
45-
virtual int getTlsGdRelaxSkip(RelType type) const { return 1; }
4645

4746
// If lazy binding is supported, the first entry of the PLT has code
4847
// to call the dynamic linker to resolve PLT entries the first time

0 commit comments

Comments
 (0)