diff options
author | David Malcolm <dmalcolm@redhat.com> | 2015-03-05 15:38:15 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2015-03-05 15:38:15 +0000 |
commit | 7ef9618369ffd71826f093077eaae3f35c15755b (patch) | |
tree | 2e47ed8d6b5c5ce6732a23d686bfa2b2a6bc6200 /gcc/jit/docs/cp | |
parent | d81177988cfc7c3f297ba38421c5fcb4aa3b34d5 (diff) | |
download | gcc-7ef9618369ffd71826f093077eaae3f35c15755b.zip gcc-7ef9618369ffd71826f093077eaae3f35c15755b.tar.gz gcc-7ef9618369ffd71826f093077eaae3f35c15755b.tar.bz2 |
jit documentation fixes
gcc/jit/ChangeLog:
* docs/cp/intro/tutorial03.rst: Add missing arguments to
gccjit::block::end_with_conditional call. Add on_true/on_false
comments. Tweak the wording.
* docs/intro/tutorial03.rst: Add missing arguments to
gcc_jit_block_end_with_conditional call. Add some clarifying
comments.
* docs/topics/compilation.rst: Tweak the wording to avoid an
ambiguous use of "this".
* docs/topics/contexts.rst: Fix a typo.
* docs/topics/expressions.rst (GCC_JIT_BINARY_OP_MINUS): Remove
a stray backtick.
* docs/_build/texinfo/libgccjit.texi: Regenerate.
From-SVN: r221218
Diffstat (limited to 'gcc/jit/docs/cp')
-rw-r--r-- | gcc/jit/docs/cp/intro/tutorial03.rst | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/jit/docs/cp/intro/tutorial03.rst b/gcc/jit/docs/cp/intro/tutorial03.rst index aac781d..f4405ad 100644 --- a/gcc/jit/docs/cp/intro/tutorial03.rst +++ b/gcc/jit/docs/cp/intro/tutorial03.rst @@ -238,7 +238,9 @@ and can then use this to add `b_loop_cond`'s sole statement, via .. code-block:: c++ - b_loop_cond.end_with_conditional (guard); + b_loop_cond.end_with_conditional (guard, + b_after_loop, // on_true + b_loop_body); // on_false However :type:`gccjit::rvalue` has overloaded operators for this, so we express the conditional as @@ -247,14 +249,14 @@ express the conditional as gccjit::rvalue guard = (i >= n); -and hence write the block more concisely as: +and hence we can write the block more concisely as: .. code-block:: c++ b_loop_cond.end_with_conditional ( i >= n, - b_after_loop, - b_loop_body); + b_after_loop, // on_true + b_loop_body); // on_false Next, we populate the body of the loop. |