Commit 7c8db13e by David Malcolm Committed by David Malcolm

libgccjit.h: Fix description of struct gcc_jit_context

gcc/jit/ChangeLog:
	* libgccjit.h (struct gcc_jit_context): Rewrite the descriptive
	comment.

From-SVN: r219366
parent 52a98b30
2015-01-08 David Malcolm <dmalcolm@redhat.com> 2015-01-08 David Malcolm <dmalcolm@redhat.com>
* libgccjit.h (struct gcc_jit_context): Rewrite the descriptive
comment.
2015-01-08 David Malcolm <dmalcolm@redhat.com>
* docs/topics/contexts.rst (Error-handling): Document new * docs/topics/contexts.rst (Error-handling): Document new
entrypoint gcc_jit_context_get_last_error. entrypoint gcc_jit_context_get_last_error.
* docs/_build/texinfo/libgccjit.texi: Regenerate. * docs/_build/texinfo/libgccjit.texi: Regenerate.
......
...@@ -31,16 +31,19 @@ extern "C" { ...@@ -31,16 +31,19 @@ extern "C" {
**********************************************************************/ **********************************************************************/
/* All structs within the API are opaque. */ /* All structs within the API are opaque. */
/* A gcc_jit_context encapsulates the state of a compilation. It goes /* A gcc_jit_context encapsulates the state of a compilation.
through two states: You can set up options on it, and add types, functions and code, using
the API below.
(1) "initial", during which you can set up options on it, and add Invoking gcc_jit_context_compile on it gives you a gcc_jit_result *
types, functions and code, using the API below. (or NULL).
Invoking gcc_jit_context_compile on it transitions it to the
"after compilation" state.
(2) "after compilation", when you can call gcc_jit_context_release to You can call gcc_jit_context_compile repeatedly on one context, giving
clean up. */ multiple independent results.
Eventually you can call gcc_jit_context_release to clean up the
context; any results created from it are still usable, and should be
cleaned up via gcc_jit_result_release. */
typedef struct gcc_jit_context gcc_jit_context; typedef struct gcc_jit_context gcc_jit_context;
/* A gcc_jit_result encapsulates the result of a compilation. */ /* A gcc_jit_result encapsulates the result of a compilation. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment