aboutsummaryrefslogtreecommitdiff
path: root/gdb/objfiles.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-11-01 18:51:15 -0600
committerTom Tromey <tom@tromey.com>2017-11-04 10:27:18 -0600
commited2b3126d1828d55d57880c6b6045a4e58c05cde (patch)
tree20e7536b313e0fd676548fea0e253c2290988608 /gdb/objfiles.c
parent7f6743fd09d0f3188dd9dcdf31acf81131f9bf1f (diff)
downloadgdb-ed2b3126d1828d55d57880c6b6045a4e58c05cde.zip
gdb-ed2b3126d1828d55d57880c6b6045a4e58c05cde.tar.gz
gdb-ed2b3126d1828d55d57880c6b6045a4e58c05cde.tar.bz2
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.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r--gdb/objfiles.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index d8fe88b..edde399 100644
--- a/gdb/objfiles.c
+++ b/gdb/objfiles.c
@@ -729,18 +729,6 @@ objfile::~objfile ()
htab_delete (static_links);
}
-static void
-do_free_objfile_cleanup (void *obj)
-{
- delete (struct objfile *) obj;
-}
-
-struct cleanup *
-make_cleanup_free_objfile (struct objfile *obj)
-{
- return make_cleanup (do_free_objfile_cleanup, obj);
-}
-
/* Free all the object files at once and clean up their users. */
void