Simplify, NFC.

llvm-svn: 269983
This commit is contained in:
Rafael Espindola
2016-05-18 21:05:18 +00:00
parent e4c86d83fe
commit 6989ebf661

View File

@@ -728,8 +728,8 @@ void Writer<ELFT>::scanRelocs(InputSectionBase<ELFT> &C, ArrayRef<RelTy> Rels) {
Out<ELFT>::Plt->addEntry(Body);
uint32_t Rel;
if (Body.isGnuIFunc())
Rel = Preemptible ? Target->PltRel : Target->IRelativeRel;
if (Body.isGnuIFunc() && !Preemptible)
Rel = Target->IRelativeRel;
else
Rel = Target->PltRel;