Remove remaining cleanups from compile-object-load.c
authorTom Tromey <tom@tromey.com>
Sat, 15 Sep 2018 20:53:53 +0000 (14:53 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 18 Sep 2018 16:18:04 +0000 (10:18 -0600)
commit40f03055a23b7d77e18e14264046d8e21b6abf67
tree47aa3286077ca10dbee01d4d2043025ca49395d7
parentc9e0a7e333107ad140d9e15110f8820115921555
Remove remaining cleanups from compile-object-load.c

This removes the remaining cleanups from compile-object-load.c.

gdb/ChangeLog
2018-09-18  Tom Tromey  <tom@tromey.com>

* compile/compile-object-load.c (struct
link_hash_table_cleanup_data): Add constructor and destructor.
Use DISABLE_COPY_AND_ASSIGN.
(~link_hash_table_cleanup_data): Rename from
link_hash_table_free.  Now a destructor.
(copy_sections): Use gdb::unique_xmalloc_ptr.  Remove cleanups.
gdb/ChangeLog
gdb/compile/compile-object-load.c