This is an archive of the discontinued LLVM Phabricator instance.

[lld/mac] Don't warn on both --icf=all and -no_deduplicate
ClosedPublic

Authored by thakis on Sep 28 2021, 5:59 PM.

Details

Reviewers
gkm
int3
Group Reviewers
Restricted Project
Commits
rGc19315ef6082: [lld/mac] Don't warn on both --icf=all and -no_deduplicate
Summary

Instead, just make the later flag win, like usual.
Implement this by making -no_deduplicate an actual alias for --icf=none
at the Options.td level.

Diff Detail

Event Timeline

thakis created this revision.Sep 28 2021, 5:59 PM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: dang. · View Herald Transcript
thakis requested review of this revision.Sep 28 2021, 5:59 PM
int3 accepted this revision.Sep 28 2021, 7:04 PM
int3 added a subscriber: int3.

Implement this by making -no_deduplicate an actual alias for --icf=all

I guess you meant =none :)

This revision is now accepted and ready to land.Sep 28 2021, 7:04 PM
thakis edited the summary of this revision. (Show Details)Sep 29 2021, 5:24 AM

Thanks!

(Fixed patch description.)

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