From 26da79f5d102404edfbbdf4b8fe5ebcdc33c38f1 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 20 Nov 2012 20:51:53 +0100 Subject: vec.h (class vec_prefix): Change into struct. * vec.h (class vec_prefix): Change into struct. Rename field alloc_PRIVATE_ back to alloc_. Rename field num_PRIVATE_ to num_. Update all users. (class vec): Rename field pfx_PRIVATE_ to vecpfx_. Rename field data_PRIVATE_ to vecdata_. Update all users. (class vec): Make every field public. Rename field vec_PRIVATE_ back to vec_. Update all users. From-SVN: r193675 --- gcc/vec.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'gcc/vec.c') diff --git a/gcc/vec.c b/gcc/vec.c index 3f8f5500303..28ca74f8374 100644 --- a/gcc/vec.c +++ b/gcc/vec.c @@ -121,8 +121,8 @@ vec_descriptor (const char *name, int line, const char *function) /* Account the overhead. */ void -vec_prefix::register_overhead_PRIVATE_ (size_t size, const char *name, int line, - const char *function) +vec_prefix::register_overhead (size_t size, const char *name, int line, + const char *function) { struct vec_descriptor *loc = vec_descriptor (name, line, function); struct ptr_hash_entry *p = XNEW (struct ptr_hash_entry); @@ -148,7 +148,7 @@ vec_prefix::register_overhead_PRIVATE_ (size_t size, const char *name, int line, /* Notice that the memory allocated for the vector has been freed. */ void -vec_prefix::release_overhead_PRIVATE_ (void) +vec_prefix::release_overhead (void) { PTR *slot = htab_find_slot_with_hash (ptr_hash, this, htab_hash_pointer (this), @@ -165,16 +165,16 @@ vec_prefix::release_overhead_PRIVATE_ (void) exponentially. PFX is the control data for the vector. */ unsigned -vec_prefix::calculate_allocation_PRIVATE_ (vec_prefix *pfx, unsigned reserve, - bool exact) +vec_prefix::calculate_allocation (vec_prefix *pfx, unsigned reserve, + bool exact) { unsigned alloc = 0; unsigned num = 0; if (pfx) { - alloc = pfx->alloc_PRIVATE_; - num = pfx->num_PRIVATE_; + alloc = pfx->alloc_; + num = pfx->num_; } else if (!reserve) /* If there's no vector, and we've not requested anything, then we -- cgit v1.2.3