Skip to content

Commit 08f36fd

Browse files
committed
docs: Mention that assertions must be enabled to use the -stats flag
Patch by Rob Stewart. Thanks! llvm-svn: 230144
1 parent e738061 commit 08f36fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/docs/ProgrammersManual.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,9 @@ gathered, use the '``-stats``' option:
488488
$ opt -stats -mypassname < program.bc > /dev/null
489489
... statistics output ...
490490
491+
Note that in order to use the '``-stats``' option, LLVM must be
492+
compiled with assertions enabled.
493+
491494
When running ``opt`` on a C file from the SPEC benchmark suite, it gives a
492495
report that looks like this:
493496

0 commit comments

Comments
 (0)