Remove make_cleanup_value_free
authorTom Tromey <tom@tromey.com>
Sun, 8 Oct 2017 18:20:49 +0000 (12:20 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 9 Oct 2017 05:07:37 +0000 (23:07 -0600)
commit757325a3f24e01bf8e7b7214f33c546bc52d1d12
treedcc5507c805dd3805e066c269d4154b50f3e0f19
parentb9c04fb2681dd5706d2cafa5dcc6bdcd99016cf4
Remove make_cleanup_value_free

This removes make_cleanup_value_free, in favor of a unique_ptr
specialization.

Regression tested by the buildbot.

gdb/ChangeLog
2017-10-08  Tom Tromey  <tom@tromey.com>

* utils.h (make_cleanup_value_free): Remove.
* utils.c (do_value_free, struct cleanup): Remove.
* dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
Use gdb_value_up.
* value.h (struct value_deleter): New.
(gdb_value_up): New typedef.
gdb/ChangeLog
gdb/dwarf2loc.c
gdb/utils.c
gdb/utils.h
gdb/value.h