Change arm_objfile_data_key to use type-safe registry
authorTom Tromey <tromey@adacore.com>
Wed, 26 Jun 2019 17:41:00 +0000 (11:41 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 27 Jun 2019 14:01:18 +0000 (08:01 -0600)
commit1b7f24cd6b4e96c64bf82eba06be2c48942699fa
tree41b71d28305194c18e82616d98c091128dc840d4
parent3d507ff23b724ecb2b9a5a61cebd0fba275cfbc3
Change arm_objfile_data_key to use type-safe registry

After seeing Simon's patch to change arm_per_objfile to use new and
delete, I realized it is now simple to change arm_objfile_data_key to
use the type-safe registry.

gdb/ChangeLog
2019-06-27  Tom Tromey  <tromey@adacore.com>

* arm-tdep.c (arm_objfile_data_key): Move lower.  Change type to
objfile_key.
(arm_find_mapping_symbol, arm_record_special_symbol)
(_initialize_arm_tdep): Update.
(arm_objfile_data_free): Remove.
gdb/ChangeLog
gdb/arm-tdep.c