binutils-gdb/gdb/compile
Keith Seitz 0cfbf43085 Use unique_ptr for htabs
This patch updates the type-conversion caching in C compile to use
unique pointers.  This patch also removes the on-demand allocation of the
symbol error map in favor of initialization, simplifying the code.

gdb/ChangeLog
        * compile/compile-internal.h (compile_instance::~compile_instance):
        Remove calls to htab_delete.
        <m_type_map, m_symbol_err_map>: Switch type to htab_up.
        * compile.c (compile_instance::compile_instance): Initialize
        htab unique pointers.
        (compile_instance::get_cached_type, compile_instance::insert_type)
        (compile_instance::error_symbol_once): Update for unique_ptr.
2018-08-10 11:14:25 -07:00
..
compile-c-support.c Change compile_instance/compile_c_instance into classes 2018-08-10 11:14:25 -07:00
compile-c-symbols.c Move compile_instance to compile.c 2018-08-10 11:14:25 -07:00
compile-c-types.c Move compile_instance to compile.c 2018-08-10 11:14:25 -07:00
compile-c.h Move compile_instance to compile.c 2018-08-10 11:14:25 -07:00
compile-internal.h Use unique_ptr for htabs 2018-08-10 11:14:25 -07:00
compile-loc2c.c Move C-related declarations to compile-c.h 2018-08-10 11:14:25 -07:00
compile-object-load.c
compile-object-load.h
compile-object-run.c
compile-object-run.h
compile.c Use unique_ptr for htabs 2018-08-10 11:14:25 -07:00
compile.h
gcc-c-plugin.h Add a C++ wrapper for GCC C plug-in 2018-08-10 11:14:25 -07:00