From 7ef9618369ffd71826f093077eaae3f35c15755b Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Thu, 5 Mar 2015 15:38:15 +0000 Subject: 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 --- gcc/jit/docs/cp/intro/tutorial03.rst | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'gcc/jit/docs/cp') 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. -- cgit v1.1