summaryrefslogtreecommitdiff
path: root/gcc/cgraph.h
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2006-04-17 12:45:25 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2006-04-17 12:45:25 +0000
commit4460a647d582a10ec8a6d298f3266603c033cfb2 (patch)
tree735700184cbda1adba2eb633a9a335a4aba8db10 /gcc/cgraph.h
parent8b435339f60a4c904ba9b263b6f3a67ab2fade30 (diff)
downloadgcc-4460a647d582a10ec8a6d298f3266603c033cfb2.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113006 138bc75d-0d04-0410-961f-82ee72b054a4
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 6e60f8c205e..8058d97c079 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 *);