diff options
author | Jan Hubicka <jh@suse.cz> | 2020-06-01 19:13:58 +0200 |
---|---|---|
committer | Jan Hubicka <jh@suse.cz> | 2020-06-01 19:13:58 +0200 |
commit | 1746d5f3e67703a5b6a3a4fd8ca625672c321313 (patch) | |
tree | 2b7c8d15f9a4f9f337a6c2590329372375808e84 /gcc/lto-streamer.h | |
parent | 258059d91bd0e27cc335312f4558e1b339a2e77d (diff) | |
download | gcc-1746d5f3e67703a5b6a3a4fd8ca625672c321313.zip gcc-1746d5f3e67703a5b6a3a4fd8ca625672c321313.tar.gz gcc-1746d5f3e67703a5b6a3a4fd8ca625672c321313.tar.bz2 |
Cleanup global decl stream reference streaming, part 2
gcc/ChangeLog:
2020-06-01 Jan Hubicka <hubicka@ucw.cz>
* lto-streamer.h (enum LTO_tags): Remove LTO_field_decl_ref,
LTO_function_decl_ref, LTO_label_decl_ref, LTO_namespace_decl_ref,
LTO_result_decl_ref, LTO_type_decl_ref, LTO_type_ref,
LTO_const_decl_ref, LTO_imported_decl_ref,
LTO_translation_unit_decl_ref, LTO_global_decl_ref and
LTO_namelist_decl_ref; add LTO_global_stream_ref.
* lto-streamer-in.c (lto_input_tree_ref): Simplify.
(lto_input_scc): Update.
(lto_input_tree_1): Update.
* lto-streamer-out.c (lto_indexable_tree_ref): Simlify.
* lto-streamer.c (lto_tag_name): Update.
Diffstat (limited to 'gcc/lto-streamer.h')
-rw-r--r-- | gcc/lto-streamer.h | 29 |
1 files changed, 8 insertions, 21 deletions
diff --git a/gcc/lto-streamer.h b/gcc/lto-streamer.h index fc7e431..241a46d 100644 --- a/gcc/lto-streamer.h +++ b/gcc/lto-streamer.h @@ -185,28 +185,15 @@ enum LTO_tags LTO_trees, /* References to indexable tree nodes. These objects are stored in - tables that are written separately from the function bodies that - reference them. This way they can be instantiated even when the - referencing functions aren't (e.g., during WPA) and it also allows - functions to be copied from one file to another without having - to unpickle the body first (the references are location - independent). - - NOTE, do not regroup these values as the grouping is exposed - in the range checks done in lto_input_tree. */ - LTO_field_decl_ref, /* Do not change. */ - LTO_function_decl_ref, - LTO_label_decl_ref, - LTO_namespace_decl_ref, - LTO_result_decl_ref, + tables that are written separately from the function bodies + and variable constructors that reference them. This way they can be + instantiated even when the referencing functions aren't (e.g., during WPA) + and it also allows functions to be copied from one file to another without + having to unpickle the body first (the references are location + independent). */ + LTO_global_stream_ref, + LTO_ssa_name_ref, - LTO_type_decl_ref, - LTO_type_ref, - LTO_const_decl_ref, - LTO_imported_decl_ref, - LTO_translation_unit_decl_ref, - LTO_global_decl_ref, - LTO_namelist_decl_ref, /* Do not change. */ /* This tag must always be last. */ LTO_NUM_TAGS |