aboutsummaryrefslogtreecommitdiff
path: root/gcc/hash-map.h
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2014-10-30 15:41:45 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2014-10-30 15:41:45 +0000
commitf1308e4b82467d9293ed989ff3e5a191a76fbef4 (patch)
treec5e0462a35b1e8a51050239cd3e22abc7b3b38e6 /gcc/hash-map.h
parentd822570f733f2660b8bd5c78cf5077e654c4387e (diff)
downloadgcc-f1308e4b82467d9293ed989ff3e5a191a76fbef4.zip
gcc-f1308e4b82467d9293ed989ff3e5a191a76fbef4.tar.gz
gcc-f1308e4b82467d9293ed989ff3e5a191a76fbef4.tar.bz2
genmatch.c: Remove <map>, <utility> and <string> includes.
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. From-SVN: r216940
Diffstat (limited to 'gcc/hash-map.h')
-rw-r--r--gcc/hash-map.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/hash-map.h b/gcc/hash-map.h
index 4988fe4..a5816dc 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> *);