aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2019-11-05 12:10:04 +0100
committerMartin Liska <marxin@gcc.gnu.org>2019-11-05 11:10:04 +0000
commitdbe348c157796a1d01de6f6a7b432a6e70b5fb0d (patch)
tree0823d492e0f781a7df0334bb037dc6fc60ee9777 /gcc
parentf340142b839ca1ed576013b4dba3d34245bac7d0 (diff)
downloadgcc-dbe348c157796a1d01de6f6a7b432a6e70b5fb0d.zip
gcc-dbe348c157796a1d01de6f6a7b432a6e70b5fb0d.tar.gz
gcc-dbe348c157796a1d01de6f6a7b432a6e70b5fb0d.tar.bz2
Update coding style in symbol-summary.h.
2019-11-05 Martin Liska <mliska@suse.cz> * symbol-summary.h: Rename allocator to m_allocator and add comment. From-SVN: r277823
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/symbol-summary.h20
2 files changed, 17 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 562b69d..4ee9ec6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2019-11-05 Martin Liska <mliska@suse.cz>
+
+ * symbol-summary.h: Rename allocator to m_allocator and
+ add comment.
+
2019-11-05 Richard Biener <rguenther@suse.de>
PR tree-optimization/92324
diff --git a/gcc/symbol-summary.h b/gcc/symbol-summary.h
index d663cbb..8aedcfe 100644
--- a/gcc/symbol-summary.h
+++ b/gcc/symbol-summary.h
@@ -31,7 +31,7 @@ public:
function_summary_base (symbol_table *symtab CXX_MEM_STAT_INFO):
m_symtab (symtab),
m_insertion_enabled (true),
- allocator ("function summary" PASS_MEM_STAT)
+ m_allocator ("function summary" PASS_MEM_STAT)
{}
/* Basic implementation of insert operation. */
@@ -62,7 +62,7 @@ protected:
/* Call gcc_internal_because we do not want to call finalizer for
a type T. We call dtor explicitly. */
return is_ggc () ? new (ggc_internal_alloc (sizeof (T))) T ()
- : allocator.allocate () ;
+ : m_allocator.allocate () ;
}
/* Release an item that is stored within map. */
@@ -74,7 +74,7 @@ protected:
ggc_free (item);
}
else
- allocator.remove (item);
+ m_allocator.remove (item);
}
/* Unregister all call-graph hooks. */
@@ -95,7 +95,9 @@ protected:
private:
/* Return true when the summary uses GGC memory for allocation. */
virtual bool is_ggc () = 0;
- object_allocator<T> allocator;
+
+ /* Object allocator for heap allocation. */
+ object_allocator<T> m_allocator;
};
template <typename T>
@@ -537,7 +539,7 @@ public:
call_summary_base (symbol_table *symtab CXX_MEM_STAT_INFO):
m_symtab (symtab),
m_initialize_when_cloning (false),
- allocator ("call summary" PASS_MEM_STAT)
+ m_allocator ("call summary" PASS_MEM_STAT)
{}
/* Basic implementation of removal operation. */
@@ -553,7 +555,7 @@ protected:
/* Call gcc_internal_because we do not want to call finalizer for
a type T. We call dtor explicitly. */
return is_ggc () ? new (ggc_internal_alloc (sizeof (T))) T ()
- : allocator.allocate ();
+ : m_allocator.allocate ();
}
/* Release an item that is stored within map. */
@@ -565,7 +567,7 @@ protected:
ggc_free (item);
}
else
- allocator.remove (item);
+ m_allocator.remove (item);
}
/* Unregister all call-graph hooks. */
@@ -584,7 +586,9 @@ protected:
private:
/* Return true when the summary uses GGC memory for allocation. */
virtual bool is_ggc () = 0;
- object_allocator<T> allocator;
+
+ /* Object allocator for heap allocation. */
+ object_allocator<T> m_allocator;
};
template <typename T>