This is an archive of the discontinued LLVM Phabricator instance.

[lld/mac] Let OutputSegment store its start address
ClosedPublic

Authored by thakis on Jul 23 2021, 7:21 AM.

Details

Reviewers
gkm
int3
Group Reviewers
Restricted Project
Commits
rG9482aa98e551: [lld/mac] Let OutputSegment store its start address
Summary

segment$start$/segment$end$ symbols allow creating segments without
sections, so getting the segment address off the first section
won't work there. Storing the address on the segment is arguably a
bit simpler too.

No behavior change, part of PR50760.

Diff Detail

Event Timeline

thakis created this revision.Jul 23 2021, 7:21 AM
Herald added a project: Restricted Project. · View Herald Transcript
thakis requested review of this revision.Jul 23 2021, 7:21 AM
thakis updated this revision to Diff 361203.Jul 23 2021, 7:37 AM
thakis edited the summary of this revision. (Show Details)

remove now-unneeded early return

int3 accepted this revision.Jul 23 2021, 7:57 AM
int3 added a subscriber: int3.

sgtm

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