diff options
Diffstat (limited to 'ELF/InputFiles.h')
| -rw-r--r-- | ELF/InputFiles.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/ELF/InputFiles.h b/ELF/InputFiles.h index 4e529c558cf5..9c54a9328f80 100644 --- a/ELF/InputFiles.h +++ b/ELF/InputFiles.h @@ -101,10 +101,10 @@ public: return F->kind() == Base::ObjectKind; } - ArrayRef<SymbolBody *> getSymbols() { return this->SymbolBodies; } + ArrayRef<SymbolBody *> getSymbols() { return SymbolBodies; } explicit ObjectFile(MemoryBufferRef M); - void parse(llvm::DenseSet<StringRef> &Comdats); + void parse(llvm::DenseSet<StringRef> &ComdatGroups); ArrayRef<InputSectionBase<ELFT> *> getSections() const { return Sections; } InputSectionBase<ELFT> *getSection(const Elf_Sym &Sym) const; @@ -113,7 +113,7 @@ public: uint32_t FirstNonLocal = this->Symtab->sh_info; if (SymbolIndex < FirstNonLocal) return nullptr; - return this->SymbolBodies[SymbolIndex - FirstNonLocal]; + return SymbolBodies[SymbolIndex - FirstNonLocal]; } Elf_Sym_Range getLocalSymbols(); @@ -127,7 +127,7 @@ public: uint32_t getMipsGp0() const; private: - void initializeSections(llvm::DenseSet<StringRef> &Comdats); + void initializeSections(llvm::DenseSet<StringRef> &ComdatGroups); void initializeSymbols(); InputSectionBase<ELFT> *createInputSection(const Elf_Shdr &Sec); @@ -159,7 +159,6 @@ public: MemoryBufferRef getMember(const Archive::Symbol *Sym); llvm::MutableArrayRef<Lazy> getLazySymbols() { return LazySymbols; } - std::vector<MemoryBufferRef> getMembers(); private: std::unique_ptr<Archive> File; @@ -194,7 +193,7 @@ public: explicit SharedFile(MemoryBufferRef M); void parseSoName(); - void parse(); + void parseRest(); // Used for --as-needed bool AsNeeded = false; @@ -202,8 +201,8 @@ public: bool isNeeded() const { return !AsNeeded || IsUsed; } }; -template <template <class> class T> -std::unique_ptr<InputFile> createELFFile(MemoryBufferRef MB); +std::unique_ptr<InputFile> createObjectFile(MemoryBufferRef MB); +std::unique_ptr<InputFile> createSharedFile(MemoryBufferRef MB); } // namespace elf2 } // namespace lld |
