From b2c0ad4071b5dfd05cc8ca0ac8c6aa1aee9c9d54 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Mon, 17 Apr 2006 12:45:25 +0000 Subject: cgraph.h (cgraph_edge_p): New. * cgraph.h (cgraph_edge_p): New. Update the prototype of cgraph_function_versioning. * cgraphunit.c (cgraph_copy_node_for_versioning, cgraph_function_versioning): Use VEC instead of VARRAY. * ipa-cp.c (ipcp_insert_stage): Likewise. From-SVN: r113006 --- gcc/cgraph.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gcc/cgraph.h') diff --git a/gcc/cgraph.h b/gcc/cgraph.h index 6e60f8c..8058d97 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -189,6 +189,11 @@ struct cgraph_edge GTY((chain_next ("%h.next_caller"), chain_prev ("%h.prev_call int loop_nest; }; +typedef struct cgraph_edge *cgraph_edge_p; + +DEF_VEC_P(cgraph_edge_p); +DEF_VEC_ALLOC_P(cgraph_edge_p,heap); + /* The cgraph_varpool data structure. Each static variable decl has assigned cgraph_varpool_node. */ @@ -307,7 +312,8 @@ void cgraph_build_static_cdtor (char which, tree body, int priority); void cgraph_reset_static_var_maps (void); void init_cgraph (void); struct cgraph_node *cgraph_function_versioning (struct cgraph_node *, - varray_type, varray_type); + VEC(cgraph_edge_p,heap)*, + varray_type); void cgraph_analyze_function (struct cgraph_node *); struct cgraph_node *save_inline_function_body (struct cgraph_node *); -- cgit v1.1