This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho][NFC] Refactor syslibroot / library path lookup
ClosedPublic

Authored by int3 on Sep 18 2020, 10:05 PM.

Details

Reviewers
smeenai
Group Reviewers
Restricted Project
Commits
rGca8752a793f1: [lld-macho][NFC] Refactor syslibroot / library path lookup
Summary
  • Move computation of systemLibraryRoots into a separate function, so we can add more functionality to it without things becoming unwieldy
  • Have getSearchPaths and related functions return by value instead of by output parameter. NRVO should ensure that performance is unaffected.

Diff Detail

Event Timeline

int3 created this revision.Sep 18 2020, 10:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 18 2020, 10:05 PM
int3 requested review of this revision.Sep 18 2020, 10:05 PM
smeenai accepted this revision.Sep 22 2020, 12:00 PM
smeenai added a subscriber: smeenai.

LGTM

This revision is now accepted and ready to land.Sep 22 2020, 12:00 PM
This revision was automatically updated to reflect the committed changes.