diff options
Diffstat (limited to 'gdb/compile/compile.h')
-rw-r--r-- | gdb/compile/compile.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gdb/compile/compile.h b/gdb/compile/compile.h index 4be6f50..1f57d67 100644 --- a/gdb/compile/compile.h +++ b/gdb/compile/compile.h @@ -19,7 +19,7 @@ #define COMPILE_COMPILE_H #include "gcc-c-interface.h" -#include "gdbsupport/gdb-hashtab.h" +#include "gdbsupport/unordered_map.h" struct ui_file; struct gdbarch; @@ -61,7 +61,10 @@ enum compile_i_scope_types class compile_instance { public: - compile_instance (struct gcc_base_context *gcc_fe, const char *options); + compile_instance (struct gcc_base_context *gcc_fe, const char *options) + : m_gcc_fe (gcc_fe), + m_gcc_target_options (options) + {} virtual ~compile_instance () { @@ -163,10 +166,10 @@ protected: std::string m_gcc_target_options; /* Map from gdb types to gcc types. */ - htab_up m_type_map; + gdb::unordered_map<type *, gcc_type> m_type_map; /* Map from gdb symbols to gcc error messages to emit. */ - htab_up m_symbol_err_map; + gdb::unordered_map<const symbol *, std::string> m_symbol_err_map; }; /* Public function that is called from compile_control case in the |