diff options
author | Jan Hubicka <jh@suse.cz> | 2010-04-30 20:44:41 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2010-04-30 18:44:41 +0000 |
commit | ace72c88c59513b361ce1cfffed07e14990b6bba (patch) | |
tree | cb91ee477b569e52145f60b6fcf1d8acc58becd3 /gcc/cgraph.h | |
parent | bf65e4b1840a177da33775556f9b7f7eecf66fc4 (diff) | |
download | gcc-ace72c88c59513b361ce1cfffed07e14990b6bba.zip gcc-ace72c88c59513b361ce1cfffed07e14990b6bba.tar.gz gcc-ace72c88c59513b361ce1cfffed07e14990b6bba.tar.bz2 |
lto.c (get_filename_for_set): Look for cgraph node and if none found, use default name.
* lto.c (get_filename_for_set): Look for cgraph node and if none found, use
default name.
(lto_wpa_write_files): Write any non-empty partition.
* cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): New.
* lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
* lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
(lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
cgraph_node_set_needs_ltrans_p): Remove.
From-SVN: r158943
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r-- | gcc/cgraph.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h index ed6ce6e..80594b1 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -827,6 +827,20 @@ struct GTY(()) constant_descriptor_tree { hashval_t hash; }; +/* Return true if set is nonempty. */ +static inline bool +cgraph_node_set_nonempty_p (cgraph_node_set set) +{ + return VEC_length (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 true when function NODE is only called directly. i.e. it is not externally visible, address was not taken and it is not used in any other non-standard way. */ |