diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-06-03 10:00:03 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-06-03 10:00:03 +0000 |
commit | 8ade54d222070b759c3f3caf5ddcb91fa935d935 (patch) | |
tree | b5754d2b97c2dee9e6c0717a678b8ad2484a3b4c /gcc/lto-streamer.h | |
parent | 666335f5a8fb1f583a1b6076938c6a340e87229a (diff) | |
download | gcc-8ade54d222070b759c3f3caf5ddcb91fa935d935.tar.gz |
* lto-cgraph.c (lto_varpool_encoder_size): Remove.
* lto-streamer.h (lto_varpool_encoder_size): New inline function.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160215 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-streamer.h')
-rw-r--r-- | gcc/lto-streamer.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/lto-streamer.h b/gcc/lto-streamer.h index b7c0c367d0c..d8978c9ec59 100644 --- a/gcc/lto-streamer.h +++ b/gcc/lto-streamer.h @@ -498,6 +498,14 @@ struct lto_varpool_encoder_d }; typedef struct lto_varpool_encoder_d *lto_varpool_encoder_t; +/* Return number of encoded nodes in ENCODER. */ + +static inline int +lto_varpool_encoder_size (lto_varpool_encoder_t encoder) +{ + return VEC_length (varpool_node_ptr, encoder->nodes); +} + /* Mapping from indices to trees. */ struct GTY(()) lto_tree_ref_table { |