aboutsummaryrefslogtreecommitdiff
path: root/gcc/hash-map.h
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2015-12-11 11:29:02 +0000
committerMichael Matz <matz@gcc.gnu.org>2015-12-11 11:29:02 +0000
commitf5c08287e25d8b02d0e9574960ce21c6ea13bee9 (patch)
tree6494a37e078dcac788db1733c9b0719609c80104 /gcc/hash-map.h
parent9e64af18754df7b9360cb9b693111caf0df8e7a2 (diff)
downloadgcc-f5c08287e25d8b02d0e9574960ce21c6ea13bee9.zip
gcc-f5c08287e25d8b02d0e9574960ce21c6ea13bee9.tar.gz
gcc-f5c08287e25d8b02d0e9574960ce21c6ea13bee9.tar.bz2
hash-map.h (hash_map::hash_map): Gather statistics only when GATHER_STATISTICS is true.
* hash-map.h (hash_map::hash_map): Gather statistics only when GATHER_STATISTICS is true. * hash-set.h (hash_set::hash_set): Ditto. * hash-table.h (hash_table::hash_table): Ditto. (hash_table::create_ggc): Ditto. From-SVN: r231560
Diffstat (limited to 'gcc/hash-map.h')
-rw-r--r--gcc/hash-map.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/hash-map.h b/gcc/hash-map.h
index b83708c..81ede08 100644
--- a/gcc/hash-map.h
+++ b/gcc/hash-map.h
@@ -107,11 +107,13 @@ class GTY((user)) hash_map
public:
explicit hash_map (size_t n = 13, bool ggc = false,
- bool gather_mem_stats = true CXX_MEM_STAT_INFO)
+ bool gather_mem_stats = GATHER_STATISTICS
+ CXX_MEM_STAT_INFO)
: m_table (n, ggc, gather_mem_stats, HASH_MAP_ORIGIN PASS_MEM_STAT) {}
/* Create a hash_map in ggc memory. */
- static hash_map *create_ggc (size_t size, bool gather_mem_stats = true
+ static hash_map *create_ggc (size_t size,
+ bool gather_mem_stats = GATHER_STATISTICS
CXX_MEM_STAT_INFO)
{
hash_map *map = ggc_alloc<hash_map> ();