aboutsummaryrefslogtreecommitdiff
path: root/gcc/alloc-pool.h
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2020-02-04 14:55:14 +0100
committerMartin Liska <mliska@suse.cz>2020-05-05 15:54:57 +0200
commitd73d45f19180a474b1bd3af3c9cdf52da3bafc78 (patch)
tree4ddb2e4178dab4c5bbbdea4fe1172713841ada26 /gcc/alloc-pool.h
parent8b33430b53b2a884f177f1d9b40ed840e07240c5 (diff)
downloadgcc-d73d45f19180a474b1bd3af3c9cdf52da3bafc78.zip
gcc-d73d45f19180a474b1bd3af3c9cdf52da3bafc78.tar.gz
gcc-d73d45f19180a474b1bd3af3c9cdf52da3bafc78.tar.bz2
Use const for some function arguments.
gcc/ChangeLog: 2020-02-04 Martin Liska <mliska@suse.cz> PR c/92472 * alloc-pool.h: Use const for some arguments. * bitmap.h: Likewise. * mem-stats.h: Likewise. * sese.h (get_entry_bb): Likewise. (get_exit_bb): Likewise.
Diffstat (limited to 'gcc/alloc-pool.h')
-rw-r--r--gcc/alloc-pool.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/alloc-pool.h b/gcc/alloc-pool.h
index 1686a8b..fd7194b 100644
--- a/gcc/alloc-pool.h
+++ b/gcc/alloc-pool.h
@@ -60,7 +60,7 @@ public:
/* Dump usage coupled to LOC location, where TOTAL is sum of all rows. */
inline void
- dump (mem_location *loc, mem_usage &total) const
+ dump (mem_location *loc, const mem_usage &total) const
{
char *location_string = loc->to_string ();