Commit fc17926a by Richard Sandiford Committed by Richard Sandiford

hash-traits.h (typed_noop_remove): Don't require a pointer type.

gcc/
	* hash-traits.h (typed_noop_remove): Don't require a pointer type.

From-SVN: r224963
parent 4c1177e1
2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
* hash-traits.h (typed_noop_remove): Don't require a pointer type.
2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
* hash-table.h (has_is_deleted, is_deleted_helper): Delete.
(has_is_empty, is_empty_helper): Delete.
(has_mark_deleted, mark_deleted_helper): Delete.
......
......@@ -44,7 +44,7 @@ typed_free_remove <Type>::remove (Type *p)
template <typename Type>
struct typed_noop_remove
{
static inline void remove (Type *p);
static inline void remove (Type &);
};
......@@ -52,7 +52,7 @@ struct typed_noop_remove
template <typename Type>
inline void
typed_noop_remove <Type>::remove (Type *p ATTRIBUTE_UNUSED)
typed_noop_remove <Type>::remove (Type &)
{
}
......@@ -169,7 +169,7 @@ struct ggc_cache_remove : ggc_remove<T>
is deleted. */
template <typename T>
struct nofree_ptr_hash : pointer_hash <T>, typed_noop_remove <T> {};
struct nofree_ptr_hash : pointer_hash <T>, typed_noop_remove <T *> {};
/* Traits for pointer elements that should be freed via free() when an
element is deleted. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment