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:
parent
7468fbca97
commit
17fe40c3ac
@ -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});
|
||||
|
Loading…
Reference in New Issue
Block a user