From 9f3341981413cf8b03f3a6b564e260a49d7c18ef Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 4 Nov 2024 13:27:46 -0500 Subject: Convert static links to new hash table This converts the objfile static link table to the new hash map. Change-Id: If978e895679899ca2af4ef01c12842b4184d88e6 Co-Authored-By: Tom Tromey Approved-By: Tom Tromey --- gdb/objfiles.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gdb/objfiles.h') diff --git a/gdb/objfiles.h b/gdb/objfiles.h index bd65e2b..2121fd3 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -32,6 +32,7 @@ #include "jit.h" #include "quick-symbol.h" #include +#include "gdbsupport/unordered_map.h" struct htab; struct objfile_data; @@ -857,7 +858,8 @@ public: Very few blocks have a static link, so it's more memory efficient to store these here rather than in struct block. Static links must be allocated on the objfile's obstack. */ - htab_up static_links; + gdb::unordered_map + static_links; /* JIT-related data for this objfile, if the objfile is a JITer; that is, it produces JITed objfiles. */ -- cgit v1.1