Return a boolean value directly, instead of returning true if true and false if false.

llvm-svn: 226984
This commit is contained in:
Rui Ueyama 2015-01-24 02:57:20 +00:00
parent 15b66535ca
commit b80a8dce03
1 changed files with 2 additions and 4 deletions

View File

@ -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.