This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Implement -S
ClosedPublic

Authored by thevinster on Oct 26 2021, 9:44 PM.

Details

Reviewers
gkm
int3
Group Reviewers
Restricted Project
Commits
rGd54360cd3228: [lld-macho] Implement -S
Summary

There are a couple internal builds that require the use of this flag.

Diff Detail

Event Timeline

thevinster created this revision.Oct 26 2021, 9:44 PM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a reviewer: Restricted Project. · View Herald Transcript
Herald added a subscriber: dang. · View Herald Transcript
thevinster published this revision for review.Oct 26 2021, 9:44 PM
thevinster edited the summary of this revision. (Show Details)
Herald added a project: Restricted Project. · View Herald TranscriptOct 26 2021, 9:46 PM
int3 accepted this revision.Oct 27 2021, 11:11 AM
int3 added a subscriber: int3.

Thanks!

lld/MachO/InputFiles.cpp
839–840 ↗(On Diff #382524)

When we implement https://bugs.llvm.org/show_bug.cgi?id=49282, we'll want to parse debug info regardless

lld/test/MachO/stabs.s
64

we're not testing -oso_prefix here, so there's no need to do the cd %t

This revision is now accepted and ready to land.Oct 27 2021, 11:11 AM
thevinster marked 2 inline comments as done.Oct 27 2021, 4:11 PM
thevinster added inline comments.
lld/MachO/InputFiles.cpp
839–840 ↗(On Diff #382524)

Removed it. I added it originally to avoid the extra computation work if it's going to be skipped but performing this doesn't seem like a huge impact (plus the need to parse it down the road regardless)

thevinster marked an inline comment as done.

nit feedback

This revision was automatically updated to reflect the committed changes.