aboutsummaryrefslogtreecommitdiff
path: root/gdb/compile/compile-object-run.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2024-11-04 13:27:45 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2024-11-25 22:07:04 -0500
commit112f6d85fb6e18c8eb0384527cdff52ade1e7e24 (patch)
tree6dc43b7e9014b86a3529715eef8fca9731e4f245 /gdb/compile/compile-object-run.c
parentc4b94535295625fe259868899b7cae54c40e60c3 (diff)
downloadbinutils-112f6d85fb6e18c8eb0384527cdff52ade1e7e24.zip
binutils-112f6d85fb6e18c8eb0384527cdff52ade1e7e24.tar.gz
binutils-112f6d85fb6e18c8eb0384527cdff52ade1e7e24.tar.bz2
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>
Diffstat (limited to 'gdb/compile/compile-object-run.c')
-rw-r--r--gdb/compile/compile-object-run.c6
1 files changed, 3 insertions, 3 deletions
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.