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.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/mem-stats.h b/gcc/mem-stats.h
index 7796059..9ceb9cc 100644
--- a/gcc/mem-stats.h
+++ b/gcc/mem-stats.h
@@ -31,8 +31,9 @@ class hash_map;
#define LOCATION_LINE_WIDTH 48
/* Memory allocation location. */
-struct mem_location
+class mem_location
{
+public:
/* Default constructor. */
inline
mem_location () {}
@@ -123,8 +124,9 @@ struct mem_location
};
/* Memory usage register to a memory location. */
-struct mem_usage
+class mem_usage
{
+public:
/* Default constructor. */
mem_usage (): m_allocated (0), m_times (0), m_peak (0), m_instances (1) {}
@@ -260,8 +262,9 @@ struct mem_usage
/* Memory usage pair that connectes memory usage and number
of allocated bytes. */
template <class T>
-struct mem_usage_pair
+class mem_usage_pair
{
+public:
mem_usage_pair (T *usage_, size_t allocated_): usage (usage_),
allocated (allocated_) {}