diff options
Diffstat (limited to 'libcc1')
-rw-r--r-- | libcc1/ChangeLog | 5 | ||||
-rw-r--r-- | libcc1/plugin.cc | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/libcc1/ChangeLog b/libcc1/ChangeLog index aba33b9c158..2aaceda2dd0 100644 --- a/libcc1/ChangeLog +++ b/libcc1/ChangeLog @@ -1,5 +1,10 @@ 2015-06-25 Richard Sandiford <richard.sandiford@arm.com> + * plugin.cc (decl_addr_hasher): Inherit from free_ptr_hash + rather than typed_free_remove. Remove redudant typedefs. + +2015-06-25 Richard Sandiford <richard.sandiford@arm.com> + * plugin.cc (string_hasher): Inherit from nofree_ptr_hash rather than typed_noop_remove. Remove redudant typedefs. (plugin_context): Use nofree_ptr_hash rather than pointer_hash. diff --git a/libcc1/plugin.cc b/libcc1/plugin.cc index 4c268c32fe6..57fca7c9a7b 100644 --- a/libcc1/plugin.cc +++ b/libcc1/plugin.cc @@ -111,11 +111,8 @@ struct decl_addr_value tree address; }; -struct decl_addr_hasher : typed_free_remove<decl_addr_value> +struct decl_addr_hasher : free_ptr_hash<decl_addr_value> { - typedef decl_addr_value *value_type; - typedef decl_addr_value *compare_type; - static inline hashval_t hash (const decl_addr_value *); static inline bool equal (const decl_addr_value *, const decl_addr_value *); }; |