genmatch.c: Remove <map>, <utility> and <string> includes.
authorRichard Biener <rguenther@suse.de>
Thu, 30 Oct 2014 15:41:45 +0000 (15:41 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 30 Oct 2014 15:41:45 +0000 (15:41 +0000)
commitf1308e4b82467d9293ed989ff3e5a191a76fbef4
treec5e0462a35b1e8a51050239cd3e22abc7b3b38e6
parentd822570f733f2660b8bd5c78cf5077e654c4387e
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
gcc/ChangeLog
gcc/Makefile.in
gcc/genmatch.c
gcc/hash-map.h