summaryrefslogtreecommitdiffstats
path: root/clang/docs/CommandGuide
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2016-09-26 18:53:34 +0000
committerMatthias Braun <matze@braunis.de>2016-09-26 18:53:34 +0000
commitabb6eea19ce3be886121d1c1c7116f6a4ced7caf (patch)
treeb5c779f96936dc1416766e4cbd2aa2e38407fb03 /clang/docs/CommandGuide
parentc603551b4e61ad58589e4d34cd7de69420fd7081 (diff)
downloadbcm5719-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/docs/CommandGuide')
-rw-r--r--clang/docs/CommandGuide/clang.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/docs/CommandGuide/clang.rst b/clang/docs/CommandGuide/clang.rst
index 7a616667dd4..b4b607d5a24 100644
--- a/clang/docs/CommandGuide/clang.rst
+++ b/clang/docs/CommandGuide/clang.rst
@@ -408,6 +408,12 @@ Driver Options
Save intermediate compilation results.
+.. option:: -save-stats, -save-stats=cwd, -save-stats=obj
+
+ Save internal code generation (LLVM) statistics to a file in the current
+ directory (:option:`-save-stats`/:option:`-save-stats=cwd`) or the directory
+ of the output file (:option:`-save-state=obj`).
+
.. option:: -integrated-as, -no-integrated-as
Used to enable and disable, respectively, the use of the integrated
OpenPOWER on IntegriCloud