docs: Mention that assertions must be enabled to use the -stats flag
authorJustin Bogner <mail@justinbogner.com>
Sat, 21 Feb 2015 20:53:36 +0000 (20:53 +0000)
committerJustin Bogner <mail@justinbogner.com>
Sat, 21 Feb 2015 20:53:36 +0000 (20:53 +0000)
Patch by Rob Stewart. Thanks!

llvm-svn: 230144

llvm/docs/ProgrammersManual.rst

index f140cf5..753e658 100644 (file)
@@ -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: