cgraph.h (cgraph_node_ptr): New type for vector functions.
commitfed5ae113c0cfdb7525cbdd8b0c18e26f512e9c6
authorDoug Kwan <dougkwan@google.com>
Mon, 20 Apr 2009 13:27:15 +0000 (20 13:27 +0000)
committerDiego Novillo <dnovillo@gcc.gnu.org>
Mon, 20 Apr 2009 13:27:15 +0000 (20 09:27 -0400)
tree531b84989d400e0b1df5557da8d196ae11d78ae6
parent97a8fb1624e2d4bca12d4421484dc953c6ea350d
cgraph.h (cgraph_node_ptr): New type for vector functions.

* 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.

From-SVN: r146418
gcc/ChangeLog
gcc/Makefile.in
gcc/cgraph.h
gcc/ipa.c
gcc/tree-pass.h