Do not use "No" prefix for boolean variables to make it simpler. NFC.

llvm-svn: 259472
This commit is contained in:
Rui Ueyama 2016-02-02 07:18:15 +00:00
parent f263c4b0f1
commit 05aecba118
1 changed files with 4 additions and 6 deletions

View File

@ -391,14 +391,12 @@ void Writer<ELFT>::scanRelocs(
// a relocation from an object file, but some relocations need no
// load-time fixup when the final target is known. Skip such relocation.
bool CBP = canBePreempted(Body, /*NeedsGot=*/false);
bool NoDynrel = Target->isRelRelative(Type) || Target->isSizeRel(Type) ||
!Config->Shared;
if (!CBP && NoDynrel)
continue;
bool Dynrel = Config->Shared && !Target->isRelRelative(Type) &&
!Target->isSizeRel(Type);
if (CBP)
Body->setUsedInDynamicReloc();
Out<ELFT>::RelaDyn->addReloc({&C, &RI});
if (CBP || Dynrel)
Out<ELFT>::RelaDyn->addReloc({&C, &RI});
}
}