[llvm] r230144 - docs: Mention that assertions must be enabled to use the -stats flag
Justin Bogner
mail at justinbogner.com
Sat Feb 21 12:53:36 PST 2015
Author: bogner
Date: Sat Feb 21 14:53:36 2015
New Revision: 230144
URL: http://llvm.org/viewvc/llvm-project?rev=230144&view=rev
Log:
docs: Mention that assertions must be enabled to use the -stats flag
Patch by Rob Stewart. Thanks!
Modified:
llvm/trunk/docs/ProgrammersManual.rst
Modified: llvm/trunk/docs/ProgrammersManual.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/ProgrammersManual.rst?rev=230144&r1=230143&r2=230144&view=diff
==============================================================================
--- llvm/trunk/docs/ProgrammersManual.rst (original)
+++ llvm/trunk/docs/ProgrammersManual.rst Sat Feb 21 14:53:36 2015
@@ -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:
More information about the llvm-commits
mailing list