diff options
author | David Malcolm <dmalcolm@redhat.com> | 2015-06-05 21:20:07 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2015-06-05 21:20:07 +0000 |
commit | e4753451687bbad897a42e3d65a8698d21715272 (patch) | |
tree | 25b30db60a0639d1f7a601742a86859fc18091f6 /gcc/jit/jit-playback.c | |
parent | 9c3e121b01cd04ed96645f85d4587184d832a103 (diff) | |
download | gcc-e4753451687bbad897a42e3d65a8698d21715272.zip gcc-e4753451687bbad897a42e3d65a8698d21715272.tar.gz gcc-e4753451687bbad897a42e3d65a8698d21715272.tar.bz2 |
Remove jit_langhook_post_compilation_parsing_cleanups
gcc/jit/ChangeLog:
* dummy-frontend.c
(jit_langhook_post_compilation_parsing_cleanups): Remove.
(LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): Remove
* jit-playback.c (gcc::jit::playback::context::new_global): Add
call to varpool_node::finalize_decl.
(gcc::jit::playback::context::finalize_global_decls): Remove.
* jit-playback.h
(gcc::jit::playback::context::finalize_global_decls): Remove.
From-SVN: r224173
Diffstat (limited to 'gcc/jit/jit-playback.c')
-rw-r--r-- | gcc/jit/jit-playback.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/gcc/jit/jit-playback.c b/gcc/jit/jit-playback.c index 64478b7..091a5ce 100644 --- a/gcc/jit/jit-playback.c +++ b/gcc/jit/jit-playback.c @@ -514,6 +514,8 @@ new_global (location *loc, varpool_node::get_create (inner); + varpool_node::finalize_decl (inner); + m_globals.safe_push (inner); return new lvalue (this, inner); @@ -668,24 +670,6 @@ as_truth_value (tree expr, location *loc) return expr; } -/* For use by jit_langhook_post_compilation_parsing_cleanups - Calls varpool_node::finalize_decl on each global. */ - -void -playback::context:: -finalize_global_decls () -{ - JIT_LOG_SCOPE (get_logger ()); - - int i; - tree decl; - FOR_EACH_VEC_ELT (m_globals, i, decl) - { - gcc_assert (TREE_CODE (decl) == VAR_DECL); - varpool_node::finalize_decl (decl); - } -} - /* Construct a playback::rvalue instance (wrapping a tree) for a unary op. */ |