Change dwarf2_per_objfile::die_type_hash to htab_up
authorTom Tromey <tom@tromey.com>
Sat, 8 Feb 2020 20:40:54 +0000 (13:40 -0700)
committerTom Tromey <tom@tromey.com>
Sat, 8 Feb 2020 20:43:24 +0000 (13:43 -0700)
commit0335378b4cd2fc8246b2eb7cfe2b7e4cf757a377
tree7d68ca72c898594e02babc75b5699846db445ecd
parent48b490f28a2152134a51215a06cb22c9b09a7a80
Change dwarf2_per_objfile::die_type_hash to htab_up

This changes dwarf2_per_objfile::die_type_hash to be an htab_up,
moving its contents off the objfile obstack.

2020-02-08  Tom Tromey  <tom@tromey.com>

* dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
* dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
htab_up.

Change-Id: Ic651f99ebf71bf7ad2dc2880192adacf7b60964a
gdb/ChangeLog
gdb/dwarf2/read.c
gdb/dwarf2/read.h