aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.h
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2006-04-17 12:45:25 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2006-04-17 12:45:25 +0000
commitb2c0ad4071b5dfd05cc8ca0ac8c6aa1aee9c9d54 (patch)
tree735700184cbda1adba2eb633a9a335a4aba8db10 /gcc/cgraph.h
parent1a5640b4e146e0a991b2172ccac9f0ae99e84ab5 (diff)
downloadgcc-b2c0ad4071b5dfd05cc8ca0ac8c6aa1aee9c9d54.zip
gcc-b2c0ad4071b5dfd05cc8ca0ac8c6aa1aee9c9d54.tar.gz
gcc-b2c0ad4071b5dfd05cc8ca0ac8c6aa1aee9c9d54.tar.bz2
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
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r--gcc/cgraph.h8
1 files changed, 7 insertions, 1 deletions
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 *);