diff --git a/lld/lib/ReaderWriter/ELF/ELFFile.h b/lld/lib/ReaderWriter/ELF/ELFFile.h index 4708a9749716117fe2c3bac715759d8b1b6de163..9b4e8b6320c5e82be6d55c238f38454d0bb9dac4 100644 --- a/lld/lib/ReaderWriter/ELF/ELFFile.h +++ b/lld/lib/ReaderWriter/ELF/ELFFile.h @@ -194,10 +194,6 @@ protected: const Elf_Sym *symbol, const Elf_Shdr *shdr); - /// \brief Return true if the symbol is corresponding to an architecture - /// specific section. We will let the TargetHandler handle such atoms. - bool isTargetSpecificAtom(const Elf_Shdr *shdr, const Elf_Sym *sym); - /// \brief Do we want to ignore the section. Ignored sections are /// not processed to create atoms bool isIgnoredSection(const Elf_Shdr *section); @@ -221,11 +217,6 @@ protected: const Elf_Sym *symbol, const Elf_Sym *nextSymbol); - /// Determines if the reader needs to create atoms for the section. - bool ignoreCreateAtomsForSection(const Elf_Shdr *shdr) { - return false; - } - void createEdge(ELFDefinedAtom *from, ELFDefinedAtom *to, uint32_t edgeKind); @@ -612,11 +603,6 @@ std::error_code ELFFile::createSymbolsFromAtomizableSections() { template std::error_code ELFFile::createAtoms() { for (auto &i : _sectionSymbols) { const Elf_Shdr *section = i.first; - - // Check if need to create atoms for this section? - if (ignoreCreateAtomsForSection(section)) - continue; - std::vector &symbols = i.second; // Sort symbols by position. @@ -854,14 +840,6 @@ template void ELFFile::updateReferences() { } } -template -bool ELFFile::isTargetSpecificAtom(const Elf_Shdr *shdr, - const Elf_Sym *sym) { - return ((shdr && (shdr->sh_flags & llvm::ELF::SHF_MASKPROC)) || - (sym->st_shndx >= llvm::ELF::SHN_LOPROC && - sym->st_shndx <= llvm::ELF::SHN_HIPROC)); -} - template bool ELFFile::isIgnoredSection(const Elf_Shdr *section) { switch (section->sh_type) {