summaryrefslogtreecommitdiff
path: root/gcc/lto-cgraph.c
diff options
context:
space:
mode:
authorMartin Liska <marxin.liska@gmail.com>2013-11-11 23:21:02 +0000
committerMartin Liska <marxin@gcc.gnu.org>2013-11-11 23:21:02 +0000
commit86ce5d2fc19438f92afcba1273153071eab48da4 (patch)
tree91cab9d80f43cc346699b11a23a3f3458b7ab15e /gcc/lto-cgraph.c
parent9544822809268ed981b10d31efd6225361ba537b (diff)
downloadgcc-86ce5d2fc19438f92afcba1273153071eab48da4.tar.gz
Time profiler introduced.
Co-Authored-By: Jan Hubicka <jh@suse.cz> From-SVN: r204690
Diffstat (limited to 'gcc/lto-cgraph.c')
-rw-r--r--gcc/lto-cgraph.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/lto-cgraph.c b/gcc/lto-cgraph.c
index 6a52da8a662..99dbf96b7a5 100644
--- a/gcc/lto-cgraph.c
+++ b/gcc/lto-cgraph.c
@@ -482,6 +482,8 @@ lto_output_node (struct lto_simple_output_block *ob, struct cgraph_node *node,
ref = LCC_NOT_FOUND;
streamer_write_hwi_stream (ob->main_stream, ref);
+ streamer_write_hwi_stream (ob->main_stream, node->tp_first_run);
+
bp = bitpack_create (ob->main_stream);
bp_pack_value (&bp, node->local.local, 1);
bp_pack_value (&bp, node->externally_visible, 1);
@@ -1077,7 +1079,10 @@ input_node (struct lto_file_decl_data *file_data,
internal_error ("bytecode stream: found multiple instances of cgraph "
"node with uid %d", node->uid);
+ node->tp_first_run = streamer_read_uhwi (ib);
+
bp = streamer_read_bitpack (ib);
+
input_overwrite_node (file_data, node, tag, &bp);
/* Store a reference for now, and fix up later to be a pointer. */