diff options
author | Jan Hubicka <jh@suse.cz> | 2010-05-29 21:43:37 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2010-05-29 19:43:37 +0000 |
commit | 9eec94880e46d26d9be550ced93b8bef75645245 (patch) | |
tree | a276a5c35631e03dcead6a2f1f87fbf5ef0cfeef /gcc/cgraph.h | |
parent | eb598ce634300e2e6633769ffda6205406169281 (diff) | |
download | gcc-9eec94880e46d26d9be550ced93b8bef75645245.zip gcc-9eec94880e46d26d9be550ced93b8bef75645245.tar.gz gcc-9eec94880e46d26d9be550ced93b8bef75645245.tar.bz2 |
cgraph.h (struct varpool_node_set_def, [...]): Remove unused AUX pointer.
* cgraph.h (struct varpool_node_set_def,
struct cgraph_node_set_def): Remove unused AUX pointer.
(cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
VEC_empty macro.
* lto.c (bitmap vector): Remove.
(lto_cgraph_node_sets, lto_varpool_node_sets): Remove.
(ltrans_partition_def): New structure.
(ltrans_partition): New type and VECtor.
(new_partition): New function.
(add_cgraph_node_to_partition): New function.
(lto_1_to_1_map): Reorganize for partitions.
(lto_add_inline_clones): Remove.
(lto_add_all_inlinees): Remove.
(lto_promote_cross_file_statics): Use partitions.
(cmp_partitions): New function.
(lto_wpa_write_files): Do not call lto_add_all_inlinees;
use partitions; output files sorted by size.
From-SVN: r160034
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r-- | gcc/cgraph.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h index b4ce531..5b1960f 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -311,7 +311,6 @@ struct GTY(()) cgraph_node_set_def { htab_t GTY((param_is (struct cgraph_node_set_element_def))) hashtab; VEC(cgraph_node_ptr, gc) *nodes; - PTR GTY ((skip)) aux; }; typedef struct varpool_node *varpool_node_ptr; @@ -326,7 +325,6 @@ struct GTY(()) varpool_node_set_def { htab_t GTY((param_is (struct varpool_node_set_element_def))) hashtab; VEC(varpool_node_ptr, gc) *nodes; - PTR GTY ((skip)) aux; }; typedef struct cgraph_node_set_def *cgraph_node_set; @@ -869,14 +867,14 @@ struct GTY(()) constant_descriptor_tree { static inline bool cgraph_node_set_nonempty_p (cgraph_node_set set) { - return VEC_length (cgraph_node_ptr, set->nodes); + return !VEC_empty (cgraph_node_ptr, set->nodes); } /* Return true if set is nonempty. */ static inline bool varpool_node_set_nonempty_p (varpool_node_set set) { - return VEC_length (varpool_node_ptr, set->nodes); + return !VEC_empty (varpool_node_ptr, set->nodes); } /* Return true when function NODE is only called directly. |