forked from OSchip/llvm-project
Return a boolean value directly, instead of returning true if true and false if false.
llvm-svn: 226984
This commit is contained in:
parent
15b66535ca
commit
b80a8dce03
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue