Add debug dump for integer_cst streaming.

* tree-streamer-out.c (streamer_write_integer_cst): Add debug dump.
This commit is contained in:
Jan Hubicka 2020-05-22 16:31:21 +02:00
parent 0896cc4276
commit 098ba49c7c
2 changed files with 7 additions and 0 deletions

View File

@ -8,6 +8,7 @@
(lto_output_tree): Improve dumping; do not stream ref when not needed.
(produce_asm_for_decls): Fix whitespace.
* tree-streamer-out.c (streamer_write_tree_header): Add dump.
* tree-streamer-out.c (streamer_write_integer_cst): Add debug dump.
2020-05-22 Hongtao.liu <hongtao.liu@intel.com>

View File

@ -1025,6 +1025,12 @@ streamer_write_integer_cst (struct output_block *ob, tree cst, bool ref_p)
int i;
int len = TREE_INT_CST_NUNITS (cst);
gcc_assert (!TREE_OVERFLOW (cst));
if (streamer_dump_file)
{
print_node_brief (streamer_dump_file, " Streaming integer ",
cst, 4);
fprintf (streamer_dump_file, "\n");
}
streamer_write_record_start (ob, LTO_integer_cst);
stream_write_tree (ob, TREE_TYPE (cst), ref_p);
/* We're effectively streaming a non-sign-extended wide_int here,