lld: Simplify a boolean expression by De Morgan's laws.

Cherry-pick lld r315653 by Rui Ueyama:
    I don't really understand what exactly this expression means,
    but at least I can mechanically transform it.

Obtained from:	LLVM r315653
MFC after:	1 week
This commit is contained in:
emaste 2017-12-15 18:56:12 +00:00
parent 7468fbca97
commit 17fe40c3ac

View File

@ -790,7 +790,7 @@ static void addGotEntry(SymbolBody &Sym, bool Preemptible) {
DynType = Target->GotRel;
}
bool Constant = !Preemptible && !(Config->Pic && !isAbsolute(Sym));
bool Constant = !Preemptible && (!Config->Pic || isAbsolute(Sym));
if (!Constant)
In<ELFT>::RelaDyn->addReloc(
{DynType, InX::Got, Off, !Preemptible, &Sym, 0});