Commit 26da79f5 by Jakub Jelinek Committed by Jakub Jelinek

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
parent e98fc6de
2012-11-20 Jakub Jelinek <jakub@redhat.com>
* 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.
2012-11-20 Richard Sandiford <rdsandiford@googlemail.com> 2012-11-20 Richard Sandiford <rdsandiford@googlemail.com>
PR middle-end/55403 PR middle-end/55403
...@@ -121,8 +121,8 @@ vec_descriptor (const char *name, int line, const char *function) ...@@ -121,8 +121,8 @@ vec_descriptor (const char *name, int line, const char *function)
/* Account the overhead. */ /* Account the overhead. */
void void
vec_prefix::register_overhead_PRIVATE_ (size_t size, const char *name, int line, vec_prefix::register_overhead (size_t size, const char *name, int line,
const char *function) const char *function)
{ {
struct vec_descriptor *loc = vec_descriptor (name, line, function); struct vec_descriptor *loc = vec_descriptor (name, line, function);
struct ptr_hash_entry *p = XNEW (struct ptr_hash_entry); 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, ...@@ -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. */ /* Notice that the memory allocated for the vector has been freed. */
void void
vec_prefix::release_overhead_PRIVATE_ (void) vec_prefix::release_overhead (void)
{ {
PTR *slot = htab_find_slot_with_hash (ptr_hash, this, PTR *slot = htab_find_slot_with_hash (ptr_hash, this,
htab_hash_pointer (this), htab_hash_pointer (this),
...@@ -165,16 +165,16 @@ vec_prefix::release_overhead_PRIVATE_ (void) ...@@ -165,16 +165,16 @@ vec_prefix::release_overhead_PRIVATE_ (void)
exponentially. PFX is the control data for the vector. */ exponentially. PFX is the control data for the vector. */
unsigned unsigned
vec_prefix::calculate_allocation_PRIVATE_ (vec_prefix *pfx, unsigned reserve, vec_prefix::calculate_allocation (vec_prefix *pfx, unsigned reserve,
bool exact) bool exact)
{ {
unsigned alloc = 0; unsigned alloc = 0;
unsigned num = 0; unsigned num = 0;
if (pfx) if (pfx)
{ {
alloc = pfx->alloc_PRIVATE_; alloc = pfx->alloc_;
num = pfx->num_PRIVATE_; num = pfx->num_;
} }
else if (!reserve) else if (!reserve)
/* If there's no vector, and we've not requested anything, then we /* If there's no vector, and we've not requested anything, then we
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment