fixing 2 typos
Rayson Ho via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 9 17:44:14 PDT 2019
Found 2 typos when I was trying to use the context sensitive profiling
feature earlier today:
====================================================================
$ git diff docs/UsersManual.rst
diff --git a/clang/docs/UsersManual.rst b/clang/docs/UsersManual.rst
index f45d2d5ac0e..0f5f315cfcb 100644
--- a/clang/docs/UsersManual.rst
+++ b/clang/docs/UsersManual.rst
@@ -1836,7 +1836,7 @@ programs using the same instrumentation method as
``-fprofile-generate``.
.. code-block:: console
$ clang++ -O2 -fprofile-use=code.profdata
-fcs-profile-generate=sss/ttt \
- -o cs_code
+ code.cc -o cs_code
$ ./cs_code
$ llvm-profdata merge -output=cs_code.profdata sss/ttt code.profdata
@@ -1846,7 +1846,7 @@ programs using the same instrumentation method as
``-fprofile-generate``.
.. code-block:: console
- $ clang++ -O2 -fprofile-use=cs_code.profdata
+ $ clang++ -O2 -fprofile-use=cs_code.profdata code.cc
The above command will read both profiles to the compiler at the
identical
point of instrumenations.
====================================================================
Rayson
==================================================
Open Grid Scheduler - The Official Open Source Grid Engine
http://gridscheduler.sourceforge.net/
http://gridscheduler.sourceforge.net/GridEngine/GridEngineCloud.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190909/0948d47f/attachment-0001.html>
More information about the cfe-commits
mailing list