Remove make_cleanup_free_objfile
authorTom Tromey <tom@tromey.com>
Thu, 2 Nov 2017 00:51:15 +0000 (18:51 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 4 Nov 2017 16:27:18 +0000 (10:27 -0600)
commited2b3126d1828d55d57880c6b6045a4e58c05cde
tree20e7536b313e0fd676548fea0e253c2290988608
parent7f6743fd09d0f3188dd9dcdf31acf81131f9bf1f
Remove make_cleanup_free_objfile

This replaces make_cleanup_free_objfile with std::unique_ptr.

gdb/ChangeLog
2017-11-04  Tom Tromey  <tom@tromey.com>

* objfiles.c (do_free_objfile_cleanup): Remove.
* compile/compile-object-load.c (compile_object_load): Update.
* objfiles.h (make_cleanup_free_objfile): Remove.
gdb/ChangeLog
gdb/compile/compile-object-load.c
gdb/objfiles.c
gdb/objfiles.h
gdb/symfile.c