[llvm-branch-commits] [clang] 872bf68 - Default CodeGenOptions::LegacyPassManager to !LLVM_ENABLE_NEW_PASS_MANAGER
Fangrui Song via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Dec 9 17:14:39 PST 2020
Author: Fangrui Song
Date: 2020-12-09T17:10:17-08:00
New Revision: 872bf680011a71b73e9bd353449d9c42ebf6b8f6
URL: https://github.com/llvm/llvm-project/commit/872bf680011a71b73e9bd353449d9c42ebf6b8f6
DIFF: https://github.com/llvm/llvm-project/commit/872bf680011a71b73e9bd353449d9c42ebf6b8f6.diff
LOG: Default CodeGenOptions::LegacyPassManager to !LLVM_ENABLE_NEW_PASS_MANAGER
Fixes test/CodeGen/flatten.c
Added:
Modified:
clang/include/clang/Driver/Options.td
Removed:
################################################################################
diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td
index fae9c1d532db..725afc7e1bb3 100644
--- a/clang/include/clang/Driver/Options.td
+++ b/clang/include/clang/Driver/Options.td
@@ -1352,7 +1352,7 @@ def fglobal_isel : Flag<["-"], "fglobal-isel">, Group<f_clang_Group>,
def fexperimental_isel : Flag<["-"], "fexperimental-isel">, Group<f_clang_Group>,
Alias<fglobal_isel>;
defm legacy_pass_manager : BooleanMarshalledFFlag<"legacy-pass-manager", "CodeGenOpts.LegacyPassManager",
- "static_cast<unsigned>(LLVM_ENABLE_NEW_PASS_MANAGER)", "Use the legacy pass manager in LLVM",
+ "!static_cast<unsigned>(LLVM_ENABLE_NEW_PASS_MANAGER)", "Use the legacy pass manager in LLVM",
"Use the new pass manager in LLVM">, Group<f_clang_Group>, Flags<[CC1Option]>;
def fexperimental_new_pass_manager : Flag<["-"], "fexperimental-new-pass-manager">,
Group<f_clang_Group>, Flags<[CC1Option]>, Alias<fno_legacy_pass_manager>;
More information about the llvm-branch-commits
mailing list