diff options
author | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-20 13:27:15 +0000 |
---|---|---|
committer | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-20 13:27:15 +0000 |
commit | 13f90d63d9e80ee9ebeafb0a98551644ff22b45c (patch) | |
tree | 531b84989d400e0b1df5557da8d196ae11d78ae6 /gcc/tree-pass.h | |
parent | 716383d80338e2f1720a8c2217593e5d5d18e0db (diff) | |
download | gcc-13f90d63d9e80ee9ebeafb0a98551644ff22b45c.tar.gz |
* cgraph.h (cgraph_node_ptr): New type for vector functions.
(struct cgraph_node_set_def): New type.
(cgraph_node_set) New type. Also declare vector functions.
(struct cgraph_node_set_element_def): New type.
(cgraph_node_set_element): Ditto.
(cgraph_node_set_iterator): New iterator type.
(cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
cgraph_node_set_remove, dump_cgraph_node_set,
debug_cgraph_node_set): New prototypes.
(csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
cgraph_node_set_size): New inlines.
* tree-pass.h (struct cgraph_node_set_def): New decl to avoid
including cgraph.h.
(struct ipa_opt_pass): Add struct cgraph_node_set_def
argument to function 'write_summary'.
* ipa.c: Include ggc.h.
(hash_cgraph_node_set_element,
eq_cgraph_node_set_element, cgraph_node_set_new,
cgraph_node_set_add, cgraph_node_set_remove,
cgraph_node_set_find, dump_cgraph_node_set,
debug_cgraph_node_set): New functions.
* Makefile.in (ipa.o): Add dependency on GGC_H.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146418 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-pass.h')
-rw-r--r-- | gcc/tree-pass.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-pass.h b/gcc/tree-pass.h index f0ae58a0414..c74ed1b654c 100644 --- a/gcc/tree-pass.h +++ b/gcc/tree-pass.h @@ -155,6 +155,7 @@ struct rtl_opt_pass struct varpool_node; struct cgraph_node; +struct cgraph_node_set_def; /* Description of IPA pass with generate summary, write, execute, read and transform stages. */ @@ -167,7 +168,7 @@ struct ipa_opt_pass void (*generate_summary) (void); /* This hook is used to serialize IPA summaries on disk. */ - void (*write_summary) (void); + void (*write_summary) (struct cgraph_node_set_def *); /* For most ipa passes, the information can only be deserialized in one chunk. However, function bodies are read function at a time |