Remove clear_symtab_users_cleanup
authorTom Tromey <tom@tromey.com>
Wed, 23 Jan 2019 18:58:34 +0000 (18:58 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 23 Jan 2019 19:07:05 +0000 (19:07 +0000)
commit286526c1e5f6d54bf6ecc961d7c2d0a32b58fe45
tree626a823940ec5e20979fb5f2a75c0c6030dbb72c
parent1db93f14fae0b3a638324e5349fe56a0e625451e
Remove clear_symtab_users_cleanup

This removes clear_symtab_users_cleanup, replacing it with uses of
forward_scope_exit.

gdb/ChangeLog:
2019-01-23  Tom Tromey  <tom@tromey.com>
    Pedro Alves  <palves@redhat.com>

* symfile.c: Include forward-scope-exit.h.
(clear_symtab_users_cleanup): Replace forward declaration with
a FORWARD_SCOPE_EXIT.
(syms_from_objfile_1): Use the forward_scope_exit and
gdb::optional instead of cleanup_function.
(reread_symbols): Use the forward_scope_exit instead of
cleanup_function.
(clear_symtab_users_cleanup): Remove function.
gdb/ChangeLog
gdb/symfile.c