diff options
Diffstat (limited to 'gcc/mem-stats.h')
-rw-r--r-- | gcc/mem-stats.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/mem-stats.h b/gcc/mem-stats.h index 63277b3..a9580ab 100644 --- a/gcc/mem-stats.h +++ b/gcc/mem-stats.h @@ -238,10 +238,10 @@ template <class T> class mem_alloc_description { public: - struct mem_alloc_hashmap_traits: default_hashmap_traits + struct mem_location_hash : nofree_ptr_hash <mem_location> { static hashval_t - hash (const mem_location *l) + hash (value_type l) { inchash::hash hstate; @@ -253,18 +253,18 @@ public: } static bool - equal_keys (const mem_location *l1, const mem_location *l2) + equal (value_type l1, value_type l2) { return l1->m_filename == l2->m_filename && l1->m_function == l2->m_function && l1->m_line == l2->m_line; } }; + typedef simple_hashmap_traits<mem_location_hash> mem_alloc_hashmap_traits; /* Internal class type definitions. */ typedef hash_map <mem_location *, T *, mem_alloc_hashmap_traits> mem_map_t; - typedef hash_map <const void *, mem_usage_pair<T>, default_hashmap_traits> - reverse_mem_map_t; + typedef hash_map <const void *, mem_usage_pair<T> > reverse_mem_map_t; typedef hash_map <const void *, std::pair<T *, size_t> > reverse_object_map_t; typedef std::pair <mem_location *, T *> mem_list_t; |