]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/jit/docs/cp/intro/tutorial04.rst
Update copyright years.
[thirdparty/gcc.git] / gcc / jit / docs / cp / intro / tutorial04.rst
index 1eb745403b06b1d6d3e4af18de8f006c14231301..86a1ec23a1f523cf9c2f7f67e3c96c00a5dde5a7 100644 (file)
@@ -1,4 +1,4 @@
-.. Copyright (C) 2014-2016 Free Software Foundation, Inc.
+.. Copyright (C) 2014-2020 Free Software Foundation, Inc.
    Originally contributed by David Malcolm <dmalcolm@redhat.com>
 
    This is free software: you can redistribute it and/or modify it
@@ -297,15 +297,14 @@ Compiling the context
 Having finished looping over the blocks and populating them with
 statements, the context is complete.
 
-We can now compile it, and extract machine code from the result:
+We can now compile it, extract machine code from the result, and
+run it:
 
    .. literalinclude:: ../../examples/tut04-toyvm/toyvm.cc
-    :start-after: /* We've now finished populating the context.  Compile it.  */
-    :end-before: /* (this leaks "result" and "funcname") */
+    :start-after: /* Wrapper around a gcc_jit_result *.  */
+    :end-before: /* Functions are compiled to this function ptr type.  */
     :language: c++
 
-We can now run the result:
-
    .. literalinclude:: ../../examples/tut04-toyvm/toyvm.cc
     :start-after: /* JIT-compilation.  */
     :end-before: return 0;