diff options
author | Tim Shen <timshen91@gmail.com> | 2017-06-29 23:10:13 +0000 |
---|---|---|
committer | Tim Shen <timshen91@gmail.com> | 2017-06-29 23:10:13 +0000 |
commit | ae1ed388cd6e265fdbb773a11f6797dee9d16fd6 (patch) | |
tree | 76f93d2bf716d9ac0627059a7417a40adb989e41 /lib/Frontend/CompilerInvocation.cpp | |
parent | e4158c49f4b27bfcf3efd2290483f2479cfacafa (diff) | |
download | clang-ae1ed388cd6e265fdbb773a11f6797dee9d16fd6.tar.gz |
[NewPM] Add Clang cc1 flag -fdebug-pass-manager for printing debug information.
Differential Revision: https://reviews.llvm.org/D34790
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@306757 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | lib/Frontend/CompilerInvocation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index 7996da33ad..6b0a5f9d87 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/lib/Frontend/CompilerInvocation.cpp @@ -476,6 +476,10 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, OPT_fexperimental_new_pass_manager, OPT_fno_experimental_new_pass_manager, /* Default */ false); + Opts.DebugPassManager = + Args.hasFlag(OPT_fdebug_pass_manager, OPT_fno_debug_pass_manager, + /* Default */ false); + if (Arg *A = Args.getLastArg(OPT_fveclib)) { StringRef Name = A->getValue(); if (Name == "Accelerate") |