]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/jit/jit-recording.c
Minor interface cleanups of libgccjit
authorUlrich Drepper <drepper@gmail.com>
Thu, 11 Dec 2014 04:31:52 +0000 (04:31 +0000)
committerUlrich Drepper <drepper@gcc.gnu.org>
Thu, 11 Dec 2014 04:31:52 +0000 (04:31 +0000)
commitc168eab92cc42d3c995cc0a1188e1554ebbcd63a
tree6a17665d977c9ac21479af8adc84e430135b76f1
parent67dab5e0a39887550a9d8681998ae7c5c723ccb7
Minor interface cleanups of libgccjit

        Minor interface cleanups of libgccjit
        * jit/jit-playback.c (convert_to_dso): Use auto_vec instead
        of automatic array to build up command line.
        * jit/jit-recording.c (recording::context::set_str_option):
        Make copy of the string.
        (recording::context::~context): Free string options.
        * jit/jit-recording.h (recording::context): Adjust type
        of m_str_options member.
        * jit/libgccjit.h: Adjust comment about
        gcc_jit_context_set_str_option parameter begin used after
        the call.
        Update comment now that all interfaces are copy strings
        if necessary.
        * jit/libgccjit++.h (gccjit::context): Add set_str_option
        member function.

From-SVN: r218617
gcc/ChangeLog
gcc/jit/jit-playback.c
gcc/jit/jit-recording.c
gcc/jit/jit-recording.h
gcc/jit/libgccjit++.h
gcc/jit/libgccjit.h