diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-10-30 15:41:45 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-10-30 15:41:45 +0000 |
commit | 80c3d8cfbee4261191eb22419c2145ff70aa49b7 (patch) | |
tree | c5e0462a35b1e8a51050239cd3e22abc7b3b38e6 /gcc/hash-map.h | |
parent | 2a2d01bbba41f13b47a772ad118d1041e4798f8e (diff) | |
download | gcc-80c3d8cfbee4261191eb22419c2145ff70aa49b7.tar.gz |
2014-10-30 Richard Biener <rguenther@suse.de>
* genmatch.c: Remove <map>, <utility> and <string> includes.
Include ggc.h and hash-map.h.
(ggc_internal_cleared_alloc): Provide stub definition.
(ggc_free): Likewise.
(struct capture_id_map_hasher): New traits for hash_map.
(cid_map_t): New typedef.
(everywhere else): Replace std::map use with cid_map_t.
* hash-map.h (hash_map::elements): New member function.
* Makefile.in (build/genmatch.o): Add $(HASH_TABLE_H),
hash-map.h and $(GGC_H) as dependency.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@216940 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/hash-map.h')
-rw-r--r-- | gcc/hash-map.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/hash-map.h b/gcc/hash-map.h index 4988fe4d037..a5816dca3ce 100644 --- a/gcc/hash-map.h +++ b/gcc/hash-map.h @@ -264,6 +264,8 @@ public: break; } + size_t elements () const { return m_table.elements (); } + private: template<typename T, typename U, typename V> friend void gt_ggc_mx (hash_map<T, U, V> *); |