[clang] 6eed1fb - [clang][NewPM] Mention that legacy PM flags are deprecated
Arthur Eubanks via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 26 14:43:29 PDT 2021
Author: Arthur Eubanks
Date: 2021-08-26T14:42:55-07:00
New Revision: 6eed1fb349de8710fba0d12a4289ac0519f23fb3
URL: https://github.com/llvm/llvm-project/commit/6eed1fb349de8710fba0d12a4289ac0519f23fb3
DIFF: https://github.com/llvm/llvm-project/commit/6eed1fb349de8710fba0d12a4289ac0519f23fb3.diff
LOG: [clang][NewPM] Mention that legacy PM flags are deprecated
Differential Revision: https://reviews.llvm.org/D108789
Added:
Modified:
clang/docs/ClangCommandLineReference.rst
clang/include/clang/Driver/Options.td
Removed:
################################################################################
diff --git a/clang/docs/ClangCommandLineReference.rst b/clang/docs/ClangCommandLineReference.rst
index dcbfba3aa836c..f42ac6dfafb74 100644
--- a/clang/docs/ClangCommandLineReference.rst
+++ b/clang/docs/ClangCommandLineReference.rst
@@ -875,7 +875,7 @@ Inline functions which are (explicitly or implicitly) marked inline
.. option:: -flegacy-pass-manager, -fno-experimental-new-pass-manager, -fno-legacy-pass-manager
-Use the legacy pass manager in LLVM
+Use the legacy pass manager in LLVM (deprecated, to be removed in a future release)
.. option:: -fno-crash-diagnostics
diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td
index 475b0ae088140..bbf65c5507a62 100644
--- a/clang/include/clang/Driver/Options.td
+++ b/clang/include/clang/Driver/Options.td
@@ -1874,7 +1874,7 @@ def fexperimental_isel : Flag<["-"], "fexperimental-isel">, Group<f_clang_Group>
Alias<fglobal_isel>;
defm legacy_pass_manager : BoolOption<"f", "legacy-pass-manager",
CodeGenOpts<"LegacyPassManager">, Default<"!static_cast<unsigned>(LLVM_ENABLE_NEW_PASS_MANAGER)">,
- PosFlag<SetTrue, [], "Use the legacy pass manager in LLVM">,
+ PosFlag<SetTrue, [], "Use the legacy pass manager in LLVM (deprecated, to be removed in a future release)">,
NegFlag<SetFalse, [], "Use the new pass manager in LLVM">,
BothFlags<[CC1Option]>>, Group<f_clang_Group>;
def fexperimental_new_pass_manager : Flag<["-"], "fexperimental-new-pass-manager">,
More information about the cfe-commits
mailing list