[llvm-branch-commits] [clang] 3ed2f5a - [clang][NewPM] Mention that legacy PM flags are deprecated
Arthur Eubanks via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Aug 30 10:10:50 PDT 2021
Author: Arthur Eubanks
Date: 2021-08-30T10:05:46-07:00
New Revision: 3ed2f5a4c60852401f64791dd5e597b4f2d6b3f0
URL: https://github.com/llvm/llvm-project/commit/3ed2f5a4c60852401f64791dd5e597b4f2d6b3f0
DIFF: https://github.com/llvm/llvm-project/commit/3ed2f5a4c60852401f64791dd5e597b4f2d6b3f0.diff
LOG: [clang][NewPM] Mention that legacy PM flags are deprecated
Differential Revision: https://reviews.llvm.org/D108789
(cherry picked from commit 6eed1fb349de8710fba0d12a4289ac0519f23fb3)
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 74557c5bd5814..e14863d8d5f86 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 a0cbcae0bdc35..0f6d2167fbce8 100644
--- a/clang/include/clang/Driver/Options.td
+++ b/clang/include/clang/Driver/Options.td
@@ -1837,7 +1837,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 llvm-branch-commits
mailing list