forked from Imagelibrary/binutils-gdb
gdb: remove BLOCKVECTOR_BLOCK and BLOCKVECTOR_NBLOCKS macros
Replace with calls to blockvector::blocks, and the appropriate method call on the returned array_view. Change-Id: I04d1f39603e4d4c21c96822421431d9a029d8ddd
This commit is contained in:
committed by
Simon Marchi
parent
6395b62847
commit
63d609debb
@@ -943,7 +943,7 @@ count_symtabs_and_blocks (int *nr_symtabs_ptr, int *nr_compunit_symtabs_ptr,
|
||||
for (compunit_symtab *cu : o->compunits ())
|
||||
{
|
||||
++nr_compunit_symtabs;
|
||||
nr_blocks += BLOCKVECTOR_NBLOCKS (cu->blockvector ());
|
||||
nr_blocks += cu->blockvector ()->num_blocks ();
|
||||
nr_symtabs += std::distance (cu->filetabs ().begin (),
|
||||
cu->filetabs ().end ());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user