diff options
Diffstat (limited to 'lld/ELF/InputFiles.h')
-rw-r--r-- | lld/ELF/InputFiles.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lld/ELF/InputFiles.h b/lld/ELF/InputFiles.h index fe8f0f88c7f..755c1531e90 100644 --- a/lld/ELF/InputFiles.h +++ b/lld/ELF/InputFiles.h @@ -161,15 +161,12 @@ public: StringRef getStringTable() const { return StringTable; } - uint32_t getSectionIndex(const Elf_Sym &Sym) const; - Elf_Sym_Range getGlobalELFSyms(); Elf_Sym_Range getELFSyms() const { return ELFSyms; } protected: ArrayRef<Elf_Sym> ELFSyms; uint32_t FirstGlobal = 0; - ArrayRef<Elf_Word> SymtabSHNDX; StringRef StringTable; void initSymtab(ArrayRef<Elf_Shdr> Sections, const Elf_Shdr *Symtab); }; @@ -202,6 +199,8 @@ public: return *this->Symbols[SymbolIndex]; } + uint32_t getSectionIndex(const Elf_Sym &Sym) const; + template <typename RelT> Symbol &getRelocTargetSym(const RelT &Rel) const { uint32_t SymIndex = Rel.getSymbol(Config->IsMips64EL); return getSymbol(SymIndex); @@ -247,6 +246,8 @@ private: bool shouldMerge(const Elf_Shdr &Sec); Symbol *createSymbol(const Elf_Sym *Sym); + ArrayRef<Elf_Word> SymtabSHNDX; + // .shstrtab contents. StringRef SectionStringTable; |