[PATCH] gdb: dwarf2/read.c: remove unused objfile parameters/variables

Tom Tromey tom@tromey.com
Wed Feb 19 21:01:00 GMT 2020


>>>>> "Simon" == Simon Marchi <simon.marchi@efficios.com> writes:

Simon> This is a simple cleanup.  These functions used to use the objfile's
Simon> obstack for allocation in the hash tables, but they don't anymore.
Simon> Remove the unnecessary objfile parameters, which in turn allows removing
Simon> some local variables.

Simon> gdb/ChangeLog:

Simon> 	* dwarf2/read.c (allocate_signatured_type_table,
Simon> 	allocate_dwo_unit_table, allocate_type_unit_groups_table,
Simon> 	allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
Simon> 	Remove objfile parameter, update all callers.

Looks good.  Thanks for doing this.

Tom



More information about the Gdb-patches mailing list