diff options
-rw-r--r-- | lld/lib/ReaderWriter/ELF/ELFFile.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lld/lib/ReaderWriter/ELF/ELFFile.h b/lld/lib/ReaderWriter/ELF/ELFFile.h index 9b4e8b6320c..2b86668b2c0 100644 --- a/lld/lib/ReaderWriter/ELF/ELFFile.h +++ b/lld/lib/ReaderWriter/ELF/ELFFile.h @@ -247,10 +247,8 @@ protected: /// Determines if the target wants to create an atom for a section that has no /// symbol references. bool handleSectionWithNoSymbols(const Elf_Shdr *shdr, - std::vector<Elf_Sym_Iter> &symbols) const { - if (shdr && shdr->sh_type == llvm::ELF::SHT_PROGBITS && symbols.empty()) - return true; - return false; + std::vector<Elf_Sym_Iter> &syms) const { + return shdr && (shdr->sh_type == llvm::ELF::SHT_PROGBITS) && syms.empty(); } /// Process the Undefined symbol and create an atom for it. |