diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2024-11-04 13:27:46 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2024-11-25 22:07:04 -0500 |
commit | 9f3341981413cf8b03f3a6b564e260a49d7c18ef (patch) | |
tree | 4bd4ef58c2544e2cf5c88628a0a94e43dc7b86b1 /gdb/objfiles.h | |
parent | 112f6d85fb6e18c8eb0384527cdff52ade1e7e24 (diff) | |
download | binutils-9f3341981413cf8b03f3a6b564e260a49d7c18ef.zip binutils-9f3341981413cf8b03f3a6b564e260a49d7c18ef.tar.gz binutils-9f3341981413cf8b03f3a6b564e260a49d7c18ef.tar.bz2 |
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 <tom@tromey.com>
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r-- | gdb/objfiles.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 <forward_list> +#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<const block *, const dynamic_prop *> + static_links; /* JIT-related data for this objfile, if the objfile is a JITer; that is, it produces JITed objfiles. */ |