[DWARVES]: Mark the end of bitfields in class__find_holes
To ease some algorithms where we have to find the transition from one bitfield to another. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
68be38bddd
commit
7953ff3ed3
|
@ -1881,6 +1881,7 @@ void class__find_holes(struct class *self, const struct cu *cu)
|
|||
if (last->bit_hole != 0)
|
||||
++self->nr_bit_holes;
|
||||
|
||||
last->bitfield_end = 1;
|
||||
bit_sum = 0;
|
||||
}
|
||||
} else if (cc_last_size < 0 && bit_sum == 0)
|
||||
|
|
|
@ -265,6 +265,7 @@ struct class_member {
|
|||
uint8_t bit_size;
|
||||
uint8_t bit_hole; /* If there is a bit hole before the next
|
||||
one (or the end of the struct) */
|
||||
uint8_t bitfield_end:1; /* Is this the last entry in a bitfield? */
|
||||
uint8_t visited:1;
|
||||
uint8_t accessibility:2; /* DW_ACCESS_{public,protected,private} */
|
||||
uint8_t virtuality:2; /* DW_VIRTUALITY_{none,virtual,pure_virtual} */
|
||||
|
|
Loading…
Reference in New Issue