jit: option-logging
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 3 Feb 2015 19:28:24 +0000 (19:28 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Tue, 3 Feb 2015 19:28:24 +0000 (19:28 +0000)
commit0ed4f01761116587a0aac7faae8512d6e73eeed0
tree6edc51684fdc5e75f650680a6dd0c8c156d03087
parent457d0ace46de02afd84f2ed5bd333a72cb0f414f
jit: option-logging

gcc/jit/ChangeLog:
* jit-logging.h (gcc::jit::log_user::log): Make const.
* jit-recording.c (gcc::jit::recording::context::set_str_option):
Log the new value of the option.
(gcc::jit::recording::context::set_int_option): Likewise.
(gcc::jit::recording::context::set_bool_option): Likewise.
(gcc::jit::recording::context::compile): Log the value of all
options.
(gcc::jit::recording::context::compile_to_file): Likewise.
(gcc::jit::recording::context::log_all_options): New function.
(gcc::jit::recording::context::log_str_option): New function.
(gcc::jit::recording::context::log_int_option): New function.
(gcc::jit::recording::context::log_bool_option): New function.
* jit-recording.h (gcc::jit::recording::context::log_all_options):
New function.
(gcc::jit::recording::context::log_str_option): New function.
(gcc::jit::recording::context::log_int_option): New function.
(gcc::jit::recording::context::log_bool_option): New function.
* docs/internals/test-hello-world.exe.log.txt: Update for above
changes.

From-SVN: r220375
gcc/jit/ChangeLog
gcc/jit/docs/_build/texinfo/libgccjit.texi
gcc/jit/docs/internals/test-hello-world.exe.log.txt
gcc/jit/jit-logging.h
gcc/jit/jit-recording.c
gcc/jit/jit-recording.h