[REORGANIZE_LIB]: class__reorganize should return void
In the past it was always cloning and doing the reorganization steps on the clone, now this is done by the caller, so no need to return self. Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
This commit is contained in:
parent
a915e5d50e
commit
4c5dfb4ba7
|
@ -654,8 +654,8 @@ static void class__fixup_member_types(struct class *self, const struct cu *cu,
|
|||
}
|
||||
}
|
||||
|
||||
struct class *class__reorganize(struct class *self, const struct cu *cu,
|
||||
const int verbose, FILE *fp)
|
||||
void class__reorganize(struct class *self, const struct cu *cu,
|
||||
const int verbose, FILE *fp)
|
||||
{
|
||||
struct class_member *member, *brother, *last_member;
|
||||
size_t last_member_size;
|
||||
|
@ -674,7 +674,7 @@ restart:
|
|||
*/
|
||||
last_member = type__last_member(&self->type);
|
||||
if (last_member == NULL)
|
||||
return self;
|
||||
return;
|
||||
|
||||
last_member_size = class_member__size(last_member, cu);
|
||||
|
||||
|
@ -726,7 +726,7 @@ restart:
|
|||
|
||||
/* Now try to move members at the tail to after holes */
|
||||
if (self->nr_holes == 0)
|
||||
goto out;
|
||||
return;
|
||||
|
||||
type__for_each_member(&self->type, member) {
|
||||
/* See if we have a hole after this member */
|
||||
|
@ -754,6 +754,4 @@ restart:
|
|||
}
|
||||
}
|
||||
}
|
||||
out:
|
||||
return self;
|
||||
}
|
||||
|
|
|
@ -22,8 +22,7 @@ extern void class__subtract_offsets_from(struct class *self,
|
|||
const struct cu *cu,
|
||||
struct class_member *from,
|
||||
const uint16_t size);
|
||||
extern struct class *class__reorganize(struct class *self,
|
||||
const struct cu *cu,
|
||||
const int verbose, FILE *fp);
|
||||
extern void class__reorganize(struct class *self, const struct cu *cu,
|
||||
const int verbose, FILE *fp);
|
||||
|
||||
#endif /* _DWARVES_REORGANIZE_H_ */
|
||||
|
|
Loading…
Reference in New Issue