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. */
/* 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. */
ggc_free (item);
}
else
- allocator.remove (item);
+ m_allocator.remove (item);
}
/* Unregister all call-graph hooks. */
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>
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. */
/* 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. */
ggc_free (item);
}
else
- allocator.remove (item);
+ m_allocator.remove (item);
}
/* Unregister all call-graph hooks. */
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>