aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto-streamer.h
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2011-05-02 18:44:04 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2011-05-02 16:44:04 +0000
commitc33406f5b10e9924b9f7a629cc7ded45585ec90b (patch)
tree7e48f380b12a761366bd63d9aaa630f22481114f /gcc/lto-streamer.h
parent95c952c53231c402909d9342ee7ec1bcda2509e7 (diff)
downloadgcc-c33406f5b10e9924b9f7a629cc7ded45585ec90b.zip
gcc-c33406f5b10e9924b9f7a629cc7ded45585ec90b.tar.gz
gcc-c33406f5b10e9924b9f7a629cc7ded45585ec90b.tar.bz2
lto-streamer.c (lto_streamer_cache_insert_1, [...]): Use pointer map instead of hashtable.
* lto-streamer.c (lto_streamer_cache_insert_1, lto_streamer_cache_lookup, lto_streamer_cache_create, lto_streamer_cache_delete): Use pointer map instead of hashtable. * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map. From-SVN: r173259
Diffstat (limited to 'gcc/lto-streamer.h')
-rw-r--r--gcc/lto-streamer.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/lto-streamer.h b/gcc/lto-streamer.h
index 4fe8f51..3d87e18 100644
--- a/gcc/lto-streamer.h
+++ b/gcc/lto-streamer.h
@@ -346,10 +346,7 @@ typedef void (lto_free_section_data_f) (struct lto_file_decl_data *,
struct lto_streamer_cache_d
{
/* The mapping between tree nodes and slots into the nodes array. */
- htab_t node_map;
-
- /* Node map to store entries into. */
- alloc_pool node_map_entries;
+ struct pointer_map_t *node_map;
/* The nodes pickled so far. */
VEC(tree,heap) *nodes;