diff options
author | Matthias Braun <matze@braunis.de> | 2016-09-26 18:53:34 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2016-09-26 18:53:34 +0000 |
commit | abb6eea19ce3be886121d1c1c7116f6a4ced7caf (patch) | |
tree | b5c779f96936dc1416766e4cbd2aa2e38407fb03 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | c603551b4e61ad58589e4d34cd7de69420fd7081 (diff) | |
download | bcm5719-llvm-abb6eea19ce3be886121d1c1c7116f6a4ced7caf.tar.gz bcm5719-llvm-abb6eea19ce3be886121d1c1c7116f6a4ced7caf.zip |
CC1: Add -save-stats option
This option behaves in a similar spirit as -save-temps and writes
internal llvm statistics in json format to a file.
Differential Revision: https://reviews.llvm.org/D24820
llvm-svn: 282426
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index c3fbda114ef..6b2df349f8b 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1252,6 +1252,7 @@ static InputKind ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args, Opts.AuxTriple = llvm::Triple::normalize(Args.getLastArgValue(OPT_aux_triple)); Opts.FindPchSource = Args.getLastArgValue(OPT_find_pch_source_EQ); + Opts.StatsFile = Args.getLastArgValue(OPT_stats_file); if (const Arg *A = Args.getLastArg(OPT_arcmt_check, OPT_arcmt_modify, |