This is an archive of the discontinued LLVM Phabricator instance.

Simplify processRelocAux
ClosedPublic

Authored by espindola on Apr 25 2018, 5:02 PM.

Details

Reviewers
ruiu
grimar
Summary

It returns a different Expr only in the case of creating a function symbol pointing to its plt entry. We can just add a call to addPltEntry to avoid that and return null.

With this patch further simplifications of how we handle copy relocations are possible.

Diff Detail

Event Timeline

espindola created this revision.Apr 25 2018, 5:02 PM
grimar accepted this revision.Apr 26 2018, 1:44 AM

LGTM

This revision is now accepted and ready to land.Apr 26 2018, 1:44 AM