This is an archive of the discontinued LLVM Phabricator instance.

[clang][cli] Don't always emit -f[no-]legacy-pass-manager
ClosedPublic

Authored by jansvoboda11 on Dec 8 2020, 9:18 AM.

Details

Summary

We don't need to always generate -f[no-]experimental-new-pass-manager.

This patch does not change the behavior of any other command line flag. (For example -triple is still being always generated.)

Diff Detail

Event Timeline

jansvoboda11 requested review of this revision.Dec 8 2020, 9:18 AM
jansvoboda11 created this revision.
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptDec 8 2020, 9:18 AM

This seems fine to me, I agree this option doesn't need to be present all the time. Thanks for clarifying that -triple is still there.

@Bigcheese, WDYT?

Bigcheese accepted this revision.Dec 9 2020, 10:23 AM

LGTM. I don't see any reason to always emit this option.

This revision is now accepted and ready to land.Dec 9 2020, 10:23 AM
dexonsmith accepted this revision.Dec 9 2020, 10:36 AM
jansvoboda11 retitled this revision from [clang][cli] Don't always emit -f[no-]experimental-new-pass-manager to [clang][cli] [clang][cli] Don't always emit -f[no-]legacy-pass-manager.Dec 11 2020, 5:45 AM

Extract default value

jansvoboda11 retitled this revision from [clang][cli] [clang][cli] Don't always emit -f[no-]legacy-pass-manager to [clang][cli] Don't always emit -f[no-]legacy-pass-manager.Dec 11 2020, 6:26 AM
dexonsmith accepted this revision.Dec 11 2020, 2:13 PM

LGTM too.

This revision was landed with ongoing or failed builds.Dec 12 2020, 1:12 AM
This revision was automatically updated to reflect the committed changes.