aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-streamer.h
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-10-09 13:34:54 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2012-10-09 13:34:54 +0000
commit58191b2eb730e384f32a15f07c59508366d55076 (patch)
tree3778368f4f404c7cc2b0fb4d80ee35fcbed07427 /gcc/tree-streamer.h
parent73367f92ad4316a6a149d40e076f6a2d5cd9a022 (diff)
downloadgcc-58191b2eb730e384f32a15f07c59508366d55076.zip
gcc-58191b2eb730e384f32a15f07c59508366d55076.tar.gz
gcc-58191b2eb730e384f32a15f07c59508366d55076.tar.bz2
tree-streamer.c (streamer_tree_cache_get): Move ...
2012-10-09 Richard Guenther <rguenther@suse.de> * tree-streamer.c (streamer_tree_cache_get): Move ... * tree-streamer.h (streamer_tree_cache_get): ... here as inline. From-SVN: r192252
Diffstat (limited to 'gcc/tree-streamer.h')
-rw-r--r--gcc/tree-streamer.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/tree-streamer.h b/gcc/tree-streamer.h
index 0631330..be0b1a3 100644
--- a/gcc/tree-streamer.h
+++ b/gcc/tree-streamer.h
@@ -93,8 +93,16 @@ bool streamer_tree_cache_insert_at (struct streamer_tree_cache_d *, tree,
void streamer_tree_cache_append (struct streamer_tree_cache_d *, tree);
bool streamer_tree_cache_lookup (struct streamer_tree_cache_d *, tree,
unsigned *);
-tree streamer_tree_cache_get (struct streamer_tree_cache_d *, unsigned);
struct streamer_tree_cache_d *streamer_tree_cache_create (void);
void streamer_tree_cache_delete (struct streamer_tree_cache_d *);
+/* Return the tree node at slot IX in CACHE. */
+
+static inline tree
+streamer_tree_cache_get (struct streamer_tree_cache_d *cache, unsigned ix)
+{
+ return VEC_index (tree, cache->nodes, ix);
+}
+
+
#endif /* GCC_TREE_STREAMER_H */