aboutsummaryrefslogtreecommitdiff
path: root/gcc/data-streamer-out.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/data-streamer-out.c')
-rw-r--r--gcc/data-streamer-out.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/data-streamer-out.c b/gcc/data-streamer-out.c
index ad50263..72f4f72 100644
--- a/gcc/data-streamer-out.c
+++ b/gcc/data-streamer-out.c
@@ -174,6 +174,13 @@ streamer_write_hwi (struct output_block *ob, HOST_WIDE_INT work)
streamer_write_hwi_stream (ob->main_stream, work);
}
+/* Write a gcov counter value WORK to OB->main_stream. */
+
+void
+streamer_write_gcov_count (struct output_block *ob, gcov_type work)
+{
+ streamer_write_gcov_count_stream (ob->main_stream, work);
+}
/* Write an unsigned HOST_WIDE_INT value WORK to OBS. */
@@ -216,3 +223,13 @@ streamer_write_hwi_stream (struct lto_output_stream *obs, HOST_WIDE_INT work)
}
while (more);
}
+
+/* Write a GCOV counter value WORK to OBS. */
+
+void
+streamer_write_gcov_count_stream (struct lto_output_stream *obs, gcov_type work)
+{
+ gcc_assert (work >= 0);
+ gcc_assert ((HOST_WIDE_INT) work == work);
+ streamer_write_hwi_stream (obs, work);
+}