From f3df9541367d65608af843d2a56f4519343e769e Mon Sep 17 00:00:00 2001 From: Andreas Krebbel Date: Thu, 28 Oct 2004 16:19:26 +0000 Subject: profile.c (branch_prob): Call to init_edge_profiler added. * profile.c (branch_prob): Call to init_edge_profiler added. * rtl-profile.c (rtl_init_edge_profiler): New function. (rtl_gen_edge_profiler): Replaced call to insert_insn_on_edge with call to safe_insert_insn_on_edge. (rtl_profile_hooks): rtl_init_edge_profiler added. * tree-profile.c (tree_init_edge_profiler): New function. (tree_profile_hooks): tree_init_edge_profiler added. * value-prof.h (profile_hooks) init_edge_profiler prototype added. From-SVN: r89764 --- gcc/value-prof.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/value-prof.h') diff --git a/gcc/value-prof.h b/gcc/value-prof.h index e1c2779..b9d0d06 100644 --- a/gcc/value-prof.h +++ b/gcc/value-prof.h @@ -80,6 +80,10 @@ extern bool value_profile_transformations (void); /* External declarations for edge-based profiling. */ struct profile_hooks { + + /* Insert code to initialize edge profiler. */ + void (*init_edge_profiler) (void); + /* Insert code to increment an edge count. */ void (*gen_edge_profiler) (int, edge); -- cgit v1.1