This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Refactor Defined to take an InputSection/OutputSection union.
AbandonedPublic

Authored by oontvoo on Mar 11 2021, 3:34 PM.

Details

Reviewers
int3
Group Reviewers
Restricted Project
Summary
  • pre-work for D97007
  • I also made a few public field const when possible.

Diff Detail

Event Timeline

oontvoo created this revision.Mar 11 2021, 3:34 PM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a reviewer: Restricted Project. · View Herald Transcript
oontvoo requested review of this revision.Mar 11 2021, 3:34 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 11 2021, 3:34 PM
int3 added a comment.Mar 12 2021, 6:03 AM

Oof, I didn't realize that using SectionPointerUnion for Defineds would result in so many isInput checks...

Hmm let me see if I can simplify __dso_handle with a different approach

int3 added a comment.Mar 12 2021, 12:22 PM

I think fake InputSections are the way to go: D98545

oontvoo abandoned this revision.Mar 12 2021, 12:51 PM

Cool. Thanks!