mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-25 16:57:52 +00:00
Convert type copying to new hash table
This converts the type copying code to use the new hash map. Change-Id: I35f0a4946dcc5c5eb84820126cf716b600f3302f Co-Authored-By: Tom Tromey <tom@tromey.com> Approved-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
committed by
Simon Marchi
parent
c4b9453529
commit
112f6d85fb
@@ -44,14 +44,13 @@
|
||||
written such that they can be used as both rvalues and lvalues.
|
||||
*/
|
||||
|
||||
#include "hashtab.h"
|
||||
#include "gdbsupport/array-view.h"
|
||||
#include "gdbsupport/gdb-hashtab.h"
|
||||
#include <optional>
|
||||
#include "gdbsupport/enum-flags.h"
|
||||
#include "dwarf2.h"
|
||||
#include "gdbsupport/gdb_obstack.h"
|
||||
#include "gmp-utils.h"
|
||||
#include "gdbsupport/unordered_map.h"
|
||||
|
||||
/* Forward declarations for prototypes. */
|
||||
struct field;
|
||||
@@ -2785,10 +2784,10 @@ extern int class_or_union_p (const struct type *);
|
||||
|
||||
extern void maintenance_print_type (const char *, int);
|
||||
|
||||
extern htab_up create_copied_types_hash ();
|
||||
using copied_types_hash_t = gdb::unordered_map<type *, type *>;
|
||||
|
||||
extern struct type *copy_type_recursive (struct type *type,
|
||||
htab_t copied_types);
|
||||
copied_types_hash_t &copied_types);
|
||||
|
||||
extern struct type *copy_type (const struct type *type);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user