Remove free_dwo_file_cleanup
authorTom Tromey <tom@tromey.com>
Wed, 28 Mar 2018 21:35:46 +0000 (15:35 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 30 Mar 2018 19:15:58 +0000 (13:15 -0600)
commit263db9a1f4105b76ddf00829d50430ea0a3bcba6
treea74d226240d6c08fbd9b8006649434338c77d99a
parent5dafb3d176ab8d9b9f0a46111d7040bb51ad8f8e
Remove free_dwo_file_cleanup

This removes free_dwo_file_cleanup, the last cleanup in dwarf2read.c.
This is replaced with a unique_ptr; which, despite the fact that a
dwo_file is obstack-allocated, seemed like the best fit.

gdb/ChangeLog
2018-03-30  Tom Tromey  <tom@tromey.com>

* dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
(struct dwo_file_deleter): New.
(dwo_file_up): New typedef.
(open_and_init_dwo_file): Use dwo_file_up.
(free_dwo_file_cleanup): Remove.
gdb/ChangeLog
gdb/dwarf2read.c