This is an archive of the discontinued LLVM Phabricator instance.

[lld/mac] Simplify encodeDylibOrdinal() a bit
ClosedPublic

Authored by thakis on Feb 26 2021, 4:16 PM.

Details

Reviewers
int3
Group Reviewers
Restricted Project
Commits
rG860e862f34ce: [lld/mac] Simplify encodeDylibOrdinal() a bit
Summary

Only one of the two callers used the lastBinding parameter, so
do that work at that one call site. Extract a ordinalForDylibSymbol()
helper to make this tidy.

No behavior change.

Diff Detail

Event Timeline

thakis created this revision.Feb 26 2021, 4:16 PM
Herald added a project: Restricted Project. · View Herald Transcript
thakis requested review of this revision.Feb 26 2021, 4:16 PM
int3 accepted this revision.Feb 26 2021, 4:57 PM

Nice :)

This revision is now accepted and ready to land.Feb 26 2021, 4:57 PM
This revision was landed with ongoing or failed builds.Feb 28 2021, 6:17 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 28 2021, 6:17 AM