Cleanup indexable tree streaming.
authorJan Hubicka <jh@suse.cz>
Sun, 31 May 2020 15:30:55 +0000 (17:30 +0200)
committerJan Hubicka <jh@suse.cz>
Sun, 31 May 2020 15:36:58 +0000 (17:36 +0200)
commit05430b9b6a7c4aeaab595787ac1fbf6f3e0196a0
treeb071f55a317925dc0e88f1672122cc7a72dc08a1
parent1d2d5afc80f07b1a62b025f17310c91a17500ab7
Cleanup indexable tree streaming.

gcc/

* lto-section-out.c (lto_output_decl_index): Remove.
(lto_output_field_decl_index): Move to lto-streamer-out.c
(lto_output_fn_decl_index): Move to lto-streamer-out.c
(lto_output_namespace_decl_index): Remove.
(lto_output_var_decl_index): Remove.
(lto_output_type_decl_index): Remove.
(lto_output_type_ref_index): Remove.
* lto-streamer-out.c (output_type_ref): Remove.
(lto_get_index): New function.
(lto_output_tree_ref): Remove.
(lto_indexable_tree_ref): New function.
(lto_output_var_decl_index): Move here from lto-section-out.c; simplify.
(lto_output_fn_decl_index): Move here from lto-section-out.c; simplify.
(stream_write_tree_ref): Update.
(lto_output_tree): Update.
* lto-streamer.h (lto_output_decl_index): Remove prototype.
(lto_output_field_decl_index): Remove prototype.
(lto_output_namespace_decl_index): Remove prototype.
(lto_output_type_decl_index): Remove prototype.
(lto_output_type_ref_index): Remove prototype.
(lto_output_var_decl_index): Move.
(lto_output_fn_decl_index): Move
gcc/lto-section-out.c
gcc/lto-streamer-out.c
gcc/lto-streamer.h