diff options
author | David Malcolm <dmalcolm@redhat.com> | 2014-12-01 17:52:03 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2014-12-01 17:52:03 +0000 |
commit | 56dea35f948f84bff37051141893e1d237c3d0f9 (patch) | |
tree | e01e97dd200d920f68a44c0ffbf55499ae2b1fe5 /gcc/jit/libgccjit.c | |
parent | 52b9468f1575b87e490cc3fdcff4c51f25fb49c1 (diff) | |
download | gcc-56dea35f948f84bff37051141893e1d237c3d0f9.zip gcc-56dea35f948f84bff37051141893e1d237c3d0f9.tar.gz gcc-56dea35f948f84bff37051141893e1d237c3d0f9.tar.bz2 |
Move gcc_jit_result implementation to a new files jit-result.{h|c}
gcc/jit/ChangeLog:
* Make-lang.in (jit_OBJS): Add jit/jit-result.o.
* jit-playback.c: Include new header jit-result.h.
(gcc::jit::result::result): Move to new file jit-result.c.
(gcc::jit::result::~result): Likewise.
(gcc::jit::playback::result): Likewise.
* jit-recording.h (class gcc::jit::result): Move to new
header jit-result.h.
* jit-result.c: New file, to contain...
(gcc::jit::result::result): Move here from jit-playback.c,
removing erroneous "playback" namespace from comment.
(gcc::jit::result::~result): Likewise.
(gcc::jit::playback::result): Likewise.
* jit-result.h: New file, to contain...
(class gcc::jit::result): Move from jit-recording.h.
* libgccjit.c: Include jit-result.h.
(gcc_jit_result_get_code): Update comment to reflect move
of implementation.
(gcc_jit_result_release): Likewise.
From-SVN: r218236
Diffstat (limited to 'gcc/jit/libgccjit.c')
-rw-r--r-- | gcc/jit/libgccjit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/jit/libgccjit.c b/gcc/jit/libgccjit.c index 7bc9209..42769e8 100644 --- a/gcc/jit/libgccjit.c +++ b/gcc/jit/libgccjit.c @@ -27,6 +27,7 @@ along with GCC; see the file COPYING3. If not see #include "libgccjit.h" #include "jit-common.h" #include "jit-recording.h" +#include "jit-result.h" /* The opaque types used by the public API are actually subclasses of the gcc::jit::recording classes. */ @@ -2047,8 +2048,7 @@ gcc_jit_context_get_first_error (gcc_jit_context *ctxt) /* Public entrypoint. See description in libgccjit.h. After error-checking, the real work is done by the - gcc::jit::playback::result::get_code method in - jit-playback.c. */ + gcc::jit::result::get_code method in jit-result.c. */ void * gcc_jit_result_get_code (gcc_jit_result *result, @@ -2063,7 +2063,7 @@ gcc_jit_result_get_code (gcc_jit_result *result, /* Public entrypoint. See description in libgccjit.h. After error-checking, this is essentially a wrapper around the - destructor for gcc::jit::playback::result in jit-playback.c. */ + destructor for gcc::jit::result in jit-result.c. */ void gcc_jit_result_release (gcc_jit_result *result) |