This is an archive of the discontinued LLVM Phabricator instance.

Refactor SharedFile::parseRest. NFC.
ClosedPublic

Authored by ruiu on Mar 23 2018, 7:24 PM.

Details

Summary

SharedFile::parseRest function grew organically and got a bit hard to
understand. This patch refactor it. This patch also adds comments.

Diff Detail

Repository
rL LLVM

Event Timeline

ruiu created this revision.Mar 23 2018, 7:24 PM
grimar accepted this revision.Mar 24 2018, 6:06 AM

This LGTM. Minor nits below.

lld/ELF/InputFiles.cpp
847 ↗(On Diff #139692)

I would probably inline SecAlign

857 ↗(On Diff #139692)

I think it should be "a DSO"

913 ↗(On Diff #139692)

Lets early continue?

if (Idx == VER_NDX_GLOBAL)
  continue;
921 ↗(On Diff #139692)

I would inline Ver.

This revision is now accepted and ready to land.Mar 24 2018, 6:06 AM
This revision was automatically updated to reflect the committed changes.