From 1eb68d2d011dd181aca030e98ab02f29375e89da Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Tue, 24 Jun 2014 13:22:11 +0000 Subject: add hash_map class gcc/ * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table. * dominance.c (iterate_fix_dominators): Use hash_map instead of pointer_map. * hash-map.h: New file. * ipa-comdats.c: Use hash_map instead of pointer_map. * ipa.c: Likewise. * lto-section-out.c: Adjust. * lto-streamer.h: Replace pointer_map with hash_map. * symtab.c (verify_symtab): Likewise. * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise. * tree-ssa-uncprop.c (val_ssa_equiv): Likewise. * tree-streamer.h: Likewise. * tree-streamer.c: Adjust. * pointer-set.h: Remove pointer_map. gcc/lto/ * lto.c (canonical_type_hash_cache): Use hash_map instead of pointer_map. From-SVN: r211938 --- gcc/tree-streamer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/tree-streamer.h') diff --git a/gcc/tree-streamer.h b/gcc/tree-streamer.h index 20dbba0..ddd366a 100644 --- a/gcc/tree-streamer.h +++ b/gcc/tree-streamer.h @@ -24,6 +24,7 @@ along with GCC; see the file COPYING3. If not see #include "streamer-hooks.h" #include "lto-streamer.h" +#include "hash-map.h" /* Cache of pickled nodes. Used to avoid writing the same node more than once. The first time a tree node is streamed out, it is @@ -46,7 +47,7 @@ along with GCC; see the file COPYING3. If not see struct streamer_tree_cache_d { /* The mapping between tree nodes and slots into the nodes array. */ - pointer_map *node_map; + hash_map *node_map; /* The nodes pickled so far. */ vec nodes; -- cgit v1.1