mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:26:52 +08:00
Simplify, NFC.
llvm-svn: 269983
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user