diff options
author | David Malcolm <dmalcolm@redhat.com> | 2014-12-01 17:56:34 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2014-12-01 17:56:34 +0000 |
commit | 8f50ee3cbed51591b9297c804a86b9c278bb04ec (patch) | |
tree | 645b99d658ed240d20fc6eebf2a0a902f937e18b /gcc/jit/jit-playback.h | |
parent | 56dea35f948f84bff37051141893e1d237c3d0f9 (diff) | |
download | gcc-8f50ee3cbed51591b9297c804a86b9c278bb04ec.zip gcc-8f50ee3cbed51591b9297c804a86b9c278bb04ec.tar.gz gcc-8f50ee3cbed51591b9297c804a86b9c278bb04ec.tar.bz2 |
jit-playback: Move argv-creation to its own function
gcc/jit/ChangeLog:
* jit-playback.c (gcc::jit::playback::context::compile): Use an
auto_vec<const char *> rather than a const char *[20] for the
top-level argv, and move the logic to build it to...
(gcc::jit::playback::context::make_fake_args): New function.
* jit-playback.h (gcc::jit::playback::context::make_fake_args):
New function.
From-SVN: r218237
Diffstat (limited to 'gcc/jit/jit-playback.h')
-rw-r--r-- | gcc/jit/jit-playback.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/jit/jit-playback.h b/gcc/jit/jit-playback.h index 30e9229..5ffc869 100644 --- a/gcc/jit/jit-playback.h +++ b/gcc/jit/jit-playback.h @@ -227,6 +227,14 @@ private: void handle_locations (); private: + + /* Functions for implementing "compile". */ + + void + make_fake_args (auto_vec <const char *> *argvec, + const char *ctxt_progname); + +private: ::gcc::jit::recording::context *m_recording_ctxt; /* Allocated using xmalloc (by xstrdup). */ |