This is an archive of the discontinued LLVM Phabricator instance.

[lld/mac] simplify export-options.s test a bit
ClosedPublic

Authored by thakis on Apr 23 2021, 7:41 PM.

Details

Reviewers
int3
Group Reviewers
Restricted Project
Commits
rG4ca0fbfabd7a: [lld/mac] simplify export-options.s test a bit
Summary
  • the macro seems needlessly clever -- shorter and imho clearer without it
  • give all filenames an extension so they look like filenames
  • rename .private_extern symbol from _private to _private_extern to prepare for follow-up that adds a truly private symbol

No behavior change.

Diff Detail

Event Timeline

thakis created this revision.Apr 23 2021, 7:41 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 23 2021, 7:41 PM
thakis requested review of this revision.Apr 23 2021, 7:41 PM
thakis updated this revision to Diff 340228.Apr 23 2021, 7:52 PM
thakis edited the summary of this revision. (Show Details)
int3 accepted this revision.Apr 23 2021, 9:03 PM
int3 added subscribers: gkm, int3.

the macro seems needlessly clever -- shorter and imho clearer without it

That's what I was trying to tell @gkm in the original diff...

This revision is now accepted and ready to land.Apr 23 2021, 9:03 PM
int3 added inline comments.Apr 23 2021, 9:08 PM
lld/test/MachO/export-options.s
87

could simplify it further and remove the retqs too

thanks!

lld/test/MachO/export-options.s
87

having different symbols at the same address is maybe a bit confusing too. i'll keep as-is for now.

This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptApr 24 2021, 5:04 AM