diff options
author | Petr Hosek <phosek@chromium.org> | 2018-04-06 00:53:00 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2018-04-06 00:53:00 +0000 |
commit | 451943aa7f8b14fe721431d1ce59e0de34afbe61 (patch) | |
tree | a4952d860f7d6eb30cb58e21e182027ee5195571 /lib/Frontend/CompilerInvocation.cpp | |
parent | 80c7cef832f1681ade62abb0e797c7abca82407e (diff) | |
download | clang-451943aa7f8b14fe721431d1ce59e0de34afbe61.tar.gz |
CMake option to allow enabling experimental new pass manager by default
This CMake flag allows setting the default value for the
-f[no]-experimental-new-pass-manager flag.
Differential Revision: https://reviews.llvm.org/D44330
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@329366 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index 45546ac3bc..1a3b67f096 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/lib/Frontend/CompilerInvocation.cpp @@ -526,7 +526,7 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, Opts.ExperimentalNewPassManager = Args.hasFlag( OPT_fexperimental_new_pass_manager, OPT_fno_experimental_new_pass_manager, - /* Default */ false); + /* Default */ ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER); Opts.DebugPassManager = Args.hasFlag(OPT_fdebug_pass_manager, OPT_fno_debug_pass_manager, |