diff options
Diffstat (limited to 'gcc/vec.c')
-rw-r--r-- | gcc/vec.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/vec.c b/gcc/vec.c index e0307dd461c..b6c31785cc4 100644 --- a/gcc/vec.c +++ b/gcc/vec.c @@ -136,7 +136,8 @@ void vec_prefix::register_overhead (void *ptr, size_t size, size_t elements MEM_STAT_DECL) { - vec_mem_desc.register_descriptor (ptr, VEC, false FINAL_PASS_MEM_STAT); + vec_mem_desc.register_descriptor (ptr, VEC_ORIGIN, false + FINAL_PASS_MEM_STAT); vec_usage *usage = vec_mem_desc.register_instance_overhead (size, ptr); usage->m_items += elements; if (usage->m_items_peak < usage->m_items) @@ -150,7 +151,8 @@ vec_prefix::release_overhead (void *ptr, size_t size, bool in_dtor MEM_STAT_DECL) { if (!vec_mem_desc.contains_descriptor_for_instance (ptr)) - vec_mem_desc.register_descriptor (ptr, VEC, false FINAL_PASS_MEM_STAT); + vec_mem_desc.register_descriptor (ptr, VEC_ORIGIN, + false FINAL_PASS_MEM_STAT); vec_mem_desc.release_instance_overhead (ptr, size, in_dtor); } @@ -185,5 +187,5 @@ vec_prefix::calculate_allocation_1 (unsigned alloc, unsigned desired) void dump_vec_loc_statistics (void) { - vec_mem_desc.dump (VEC); + vec_mem_desc.dump (VEC_ORIGIN); } |