From 112f6d85fb6e18c8eb0384527cdff52ade1e7e24 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 4 Nov 2024 13:27:45 -0500 Subject: 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 Approved-By: Tom Tromey --- gdb/compile/compile-object-run.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/compile/compile-object-run.c') diff --git a/gdb/compile/compile-object-run.c b/gdb/compile/compile-object-run.c index 5a810d5..8316377 100644 --- a/gdb/compile/compile-object-run.c +++ b/gdb/compile/compile-object-run.c @@ -105,9 +105,9 @@ do_module_cleanup (void *arg, int registers_valid) static type * create_copied_type_recursive (objfile *objfile, type *func_type) { - htab_up copied_types = create_copied_types_hash (); - func_type = copy_type_recursive (func_type, copied_types.get ()); - return func_type; + copied_types_hash_t copied_types; + + return copy_type_recursive (func_type, copied_types); } /* Perform inferior call of MODULE. This function may throw an error. -- cgit v1.1