summaryrefslogtreecommitdiff
path: root/gcc/coverage.h
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2011-12-04 18:27:19 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2011-12-04 18:27:19 +0000
commitb724567ea68234e4fa748b4373824cf30b3f6845 (patch)
tree48d2612cbd2d4812c63435c60a1a9865090aa906 /gcc/coverage.h
parent13901e4b28c4618bbb8cdde78896dee6a4940fa1 (diff)
gcov-io.h (struct gcov_info): Replace trailing array with pointer to array.
* gcov-io.h (struct gcov_info): Replace trailing array with pointer to array. * profile.c (branch_prob): Only call renamed coverage_begin_function once. * coverage.h (coverage_begin_output): Rename to ... (coverage_begin_function): ... here. * coverage.c (struct function_list): Rename to ... (struct coverage_data): ... this. Update all uses. (gcov_info_var, gcov_fn_info_type, gcov_fn_info_ptr_type): New globals. (bbg_file_opened, bbg_function_announced): Remove. (get_coverage_counts): Adjust message. (coverage_begin_ouput): Rename to ... (coverage_begin_function): ... here. Move file opening to coverage_init. Adjust for being called only once. (coverage_end_function): Remove bbg file and inhibit further output here on error. (build_info_type): Adjust for change to pointer to array. (build_info): Receive array of function pointers and adjust. (create_coverage): Break into ... (coverage_obj_init, coverage_obj_fn, coverage_obj_finish): ... these, and adjust. (coverage_init): Open the notes file here. Tidy. (coverage_finish): Call coverage_obj_init etc. From-SVN: r181994
Diffstat (limited to 'gcc/coverage.h')
-rw-r--r--gcc/coverage.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/gcc/coverage.h b/gcc/coverage.h
index 6935c2d338b..1f3662b7455 100644
--- a/gcc/coverage.h
+++ b/gcc/coverage.h
@@ -26,13 +26,12 @@ along with GCC; see the file COPYING3. If not see
extern void coverage_init (const char *);
extern void coverage_finish (void);
-/* Complete the coverage information for the current function. Once
- per function. */
-extern void coverage_end_function (unsigned, unsigned);
-
/* Start outputting coverage information for the current
- function. Repeatable per function. */
-extern int coverage_begin_output (unsigned, unsigned);
+ function. */
+extern int coverage_begin_function (unsigned, unsigned);
+
+/* Complete the coverage information for the current function. */
+extern void coverage_end_function (unsigned, unsigned);
/* Compute the control flow checksum for the current function. */
extern unsigned coverage_compute_cfg_checksum (void);