summaryrefslogtreecommitdiff
path: root/gcc/value-prof.h
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-28 16:19:26 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-28 16:19:26 +0000
commit4b0a9554ad900aa505ed8774de9ac4d700c93234 (patch)
tree5b78eb120055abb834a6216175418c0de85cefd4 /gcc/value-prof.h
parent4ae7d3a8b0dd16f89cf76f91c8052308987f45e2 (diff)
downloadgcc-4b0a9554ad900aa505ed8774de9ac4d700c93234.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89764 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/value-prof.h')
-rw-r--r--gcc/value-prof.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/value-prof.h b/gcc/value-prof.h
index e1c27790d20..b9d0d0663b2 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);