mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 09:38:57 +00:00
Remove addrmap_fixed::set_entry
It occurred to me that there is no reason for addrmap_fixed::set_entry to exist. This patch removes it and removes the abstract virtual function from the base class. This then required a few minor changes in the DWARF reader. I consider this a type-safety improvement. Tested by rebuilding. Reviewed-By: Tom de Vries <tdevries@suse.de>
This commit is contained in:
@@ -907,7 +907,7 @@ static enum pc_bounds_kind dwarf2_get_pc_bounds (struct die_info *,
|
||||
unrelocated_addr *,
|
||||
unrelocated_addr *,
|
||||
struct dwarf2_cu *,
|
||||
addrmap *,
|
||||
addrmap_mutable *,
|
||||
void *);
|
||||
|
||||
static void get_scope_pc_bounds (struct die_info *,
|
||||
@@ -11013,7 +11013,7 @@ dwarf2_ranges_process (unsigned offset, struct dwarf2_cu *cu, dwarf_tag tag,
|
||||
static int
|
||||
dwarf2_ranges_read (unsigned offset, unrelocated_addr *low_return,
|
||||
unrelocated_addr *high_return, struct dwarf2_cu *cu,
|
||||
addrmap *map, void *datum, dwarf_tag tag)
|
||||
addrmap_mutable *map, void *datum, dwarf_tag tag)
|
||||
{
|
||||
dwarf2_per_objfile *per_objfile = cu->per_objfile;
|
||||
int low_set = 0;
|
||||
@@ -11123,7 +11123,7 @@ dwarf2_get_pc_bounds_entry_point (die_info *die, unrelocated_addr *low,
|
||||
static pc_bounds_kind
|
||||
dwarf_get_pc_bounds_ranges_or_highlow_pc (die_info *die, unrelocated_addr *low,
|
||||
unrelocated_addr *high, dwarf2_cu *cu,
|
||||
addrmap *map, void *datum)
|
||||
addrmap_mutable *map, void *datum)
|
||||
{
|
||||
gdb_assert (low != nullptr);
|
||||
gdb_assert (high != nullptr);
|
||||
@@ -11192,7 +11192,7 @@ dwarf_get_pc_bounds_ranges_or_highlow_pc (die_info *die, unrelocated_addr *low,
|
||||
static enum pc_bounds_kind
|
||||
dwarf2_get_pc_bounds (struct die_info *die, unrelocated_addr *lowpc,
|
||||
unrelocated_addr *highpc, struct dwarf2_cu *cu,
|
||||
addrmap *map, void *datum)
|
||||
addrmap_mutable *map, void *datum)
|
||||
{
|
||||
dwarf2_per_objfile *per_objfile = cu->per_objfile;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user