This is an archive of the discontinued LLVM Phabricator instance.

[lld/mac] Move handling of special undefineds later
ClosedPublic

Authored by thakis on Jul 22 2021, 8:04 AM.

Details

Reviewers
gkm
int3
Group Reviewers
Restricted Project
Commits
rG9d43c000e1b8: [lld/mac] Move handling of special undefineds later
Summary

treatUndefinedSymbol() was previously called before gatherInputSections()
and markLive() for these special symbols, but after them for normal
undefineds.

For PR50760, treatUndefinedSymbol() will have to potentially create
sections, so it's good to move treatUndefinedSymbol() for special
undefineds later, so that it can assume that gatherInputSections()
and markLive() has already been called always.

No intended behavior change, but part of PR50760 (and covered in
tests in the patch for the full feature).

Diff Detail

Event Timeline

thakis created this revision.Jul 22 2021, 8:04 AM
Herald added a project: Restricted Project. · View Herald Transcript
thakis requested review of this revision.Jul 22 2021, 8:04 AM
int3 accepted this revision.Jul 22 2021, 8:17 AM
int3 added a subscriber: int3.

lgtm

This revision is now accepted and ready to land.Jul 22 2021, 8:17 AM
This revision was landed with ongoing or failed builds.Jul 22 2021, 8:44 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 22 2021, 8:44 AM