From f1308e4b82467d9293ed989ff3e5a191a76fbef4 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 30 Oct 2014 15:41:45 +0000 Subject: genmatch.c: Remove , and includes. 2014-10-30 Richard Biener * genmatch.c: Remove , and 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 --- gcc/hash-map.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/hash-map.h') 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 friend void gt_ggc_mx (hash_map *); -- cgit v1.1