[clang][cli] Don't always emit -f[no-]legacy-pass-manager
authorJan Svoboda <jan_svoboda@apple.com>
Tue, 8 Dec 2020 17:15:21 +0000 (18:15 +0100)
committerJan Svoboda <jan_svoboda@apple.com>
Sat, 12 Dec 2020 09:11:23 +0000 (10:11 +0100)
commit10f40576f7b482dc55b9a0ba780c294c4e45817c
tree4d1d68ef37ce6aeebbbdf7a6278d4ccd01b251be
parent6f26a6de489e66830c3181b747f6b18e439f36be
[clang][cli] Don't always emit -f[no-]legacy-pass-manager

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.)

Reviewed By: dexonsmith, Bigcheese

Differential Revision: https://reviews.llvm.org/D92857
clang/unittests/Frontend/CompilerInvocationTest.cpp
llvm/include/llvm/Option/OptParser.td