diff options
author | Jakub Jelinek <jakub@redhat.com> | 2012-11-20 20:51:53 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2012-11-20 20:51:53 +0100 |
commit | 26da79f5d102404edfbbdf4b8fe5ebcdc33c38f1 (patch) | |
tree | e25061f9178c7c00c5930ed9b45323f527a4da79 /gcc/vec.c | |
parent | e98fc6de681cb80aa973b349a3e6b477fcbf8a02 (diff) | |
download | gcc-26da79f5d102404edfbbdf4b8fe5ebcdc33c38f1.zip gcc-26da79f5d102404edfbbdf4b8fe5ebcdc33c38f1.tar.gz gcc-26da79f5d102404edfbbdf4b8fe5ebcdc33c38f1.tar.bz2 |
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<T, A, vl_embed>): Rename field pfx_PRIVATE_ to vecpfx_.
Rename field data_PRIVATE_ to vecdata_.
Update all users.
(class vec<T, A, vl_ptr>): Make every field public.
Rename field vec_PRIVATE_ back to vec_.
Update all users.
From-SVN: r193675
Diffstat (limited to 'gcc/vec.c')
-rw-r--r-- | gcc/vec.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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 |