aboutsummaryrefslogtreecommitdiff
path: root/gcc/mem-stats.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/mem-stats.h')
-rw-r--r--gcc/mem-stats.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/mem-stats.h b/gcc/mem-stats.h
index 21d038b..4a3177d 100644
--- a/gcc/mem-stats.h
+++ b/gcc/mem-stats.h
@@ -70,7 +70,7 @@ public:
/* Return true if the memory location is equal to OTHER. */
int
- equal (mem_location &other)
+ equal (const mem_location &other)
{
return m_filename == other.m_filename && m_function == other.m_function
&& m_line == other.m_line;
@@ -203,7 +203,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 ();