From 84aaf62dfb296e29f607c61be3213d603fc2699d Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Fri, 23 Jan 2015 23:59:39 +0000 Subject: [PATCH] ELF: Remove dead code. llvm-svn: 226972 --- lld/lib/ReaderWriter/ELF/ELFFile.h | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/lld/lib/ReaderWriter/ELF/ELFFile.h b/lld/lib/ReaderWriter/ELF/ELFFile.h index 4708a9749716..9b4e8b6320c5 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) {