Skip to content

Commit

Permalink
docs: Mention that assertions must be enabled to use the -stats flag
Browse files Browse the repository at this point in the history
Patch by Rob Stewart. Thanks!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230144 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
bogner committed Feb 21, 2015
1 parent 8d353ae commit ad821f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/ProgrammersManual.rst
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,9 @@ gathered, use the '``-stats``' option:
$ opt -stats -mypassname < program.bc > /dev/null
... statistics output ...
Note that in order to use the '``-stats``' option, LLVM must be
compiled with assertions enabled.

When running ``opt`` on a C file from the SPEC benchmark suite, it gives a
report that looks like this:

Expand Down

0 comments on commit ad821f0

Please sign in to comment.