This is an archive of the discontinued LLVM Phabricator instance.

[ELF] - Refactor readCallGraph(). NFCI.
ClosedPublic

Authored by grimar on Jul 10 2018, 7:44 AM.

Details

Summary

I suggest doing this change to eliminate code duplication.
It's NFC except that it removes early exit for Count == 0
which does not seem to be useful (we have no such tests either).

Diff Detail

Repository
rLLD LLVM Linker

Event Timeline

grimar created this revision.Jul 10 2018, 7:44 AM

Rui, do you have objections to that change?

ruiu accepted this revision.Aug 3 2018, 11:12 AM

LGTM

This revision is now accepted and ready to land.Aug 3 2018, 11:12 AM
This revision was automatically updated to reflect the committed changes.