The C++ delayed folding work wants to be able to clear out a hash_map, and it's trivial to refer to the empty() function from the hash_table.

Tested x86_64-pc-linux-gnu, applying to trunk.

commit 760ba6617d6b7867692aba8c7494e8f08d6109aa
Author: Jason Merrill <ja...@redhat.com>
Date:   Fri Nov 13 09:38:32 2015 -0500

    	* hash-map.h (hash_map::empty): New.

diff --git a/gcc/hash-map.h b/gcc/hash-map.h
index 59794eb..b83708c 100644
--- a/gcc/hash-map.h
+++ b/gcc/hash-map.h
@@ -190,6 +190,8 @@ public:
 
   size_t elements () const { return m_table.elements (); }
 
+  void empty () { m_table.empty(); }
+
   class iterator
   {
   public:

Reply via email to