aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.h
diff options
context:
space:
mode:
authorChristian Biesinger <cbiesinger@google.com>2019-09-27 12:40:04 -0500
committerChristian Biesinger <cbiesinger@google.com>2019-10-22 11:25:31 -0500
commit7bb43059820c5febb4509b15202a93efde442bc6 (patch)
tree897162cc893ad9a29aae05506f5ef958d8682718 /gdb/utils.h
parent6207ed28773381859319cf314eb9c4e0683c0773 (diff)
downloadbinutils-7bb43059820c5febb4509b15202a93efde442bc6.zip
binutils-7bb43059820c5febb4509b15202a93efde442bc6.tar.gz
binutils-7bb43059820c5febb4509b15202a93efde442bc6.tar.bz2
Store the mangled name as a string_view
This should be a bit faster (because we can compare the size first), but it is also a dependency for the next patch. (3.47% of gdb startup time is spent in eq_demangled_name_entry when attaching to Chrome's content_shell binary) gdb/ChangeLog: 2019-10-22 Christian Biesinger <cbiesinger@google.com> * symtab.c (struct demangled_name_entry): Change type of mangled to gdb::string_view. Also adds a constructor that takes the mangled name. (hash_demangled_name_entry): Update. (eq_demangled_name_entry): Update. (free_demangled_name_entry): New function to call the destructor now that this is not a POD anymore. (create_demangled_names_hash): Pass free_demangled_name_entry to htab_create_alloc. (symbol_set_names): Update. Change-Id: I24711ae2bcaa9e79ca89a6f8fda385d400419175
Diffstat (limited to 'gdb/utils.h')
0 files changed, 0 insertions, 0 deletions