aboutsummaryrefslogtreecommitdiff
path: root/libcc1
diff options
context:
space:
mode:
Diffstat (limited to 'libcc1')
-rw-r--r--libcc1/ChangeLog5
-rw-r--r--libcc1/plugin.cc5
2 files changed, 6 insertions, 4 deletions
diff --git a/libcc1/ChangeLog b/libcc1/ChangeLog
index aba33b9..2aaceda 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 4c268c3..57fca7c 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 *);
};