Add a fast_hash function in common-utils
authorChristian Biesinger <cbiesinger@google.com>
Fri, 27 Sep 2019 18:08:25 +0000 (13:08 -0500)
committerChristian Biesinger <cbiesinger@google.com>
Tue, 22 Oct 2019 16:26:17 +0000 (11:26 -0500)
commit1a6ff1a96b302283d517b3cdeae7310adecbe859
tree0865c6916b3f41de3c77f11505cef808501150cd
parent7bb43059820c5febb4509b15202a93efde442bc6
Add a fast_hash function in common-utils

Also updates a caller in symtab.c. For now this just calls htab_hash_string
but the next patch will change it to xxhash, if available.

gdb/ChangeLog:

2019-10-22  Christian Biesinger  <cbiesinger@google.com>

* utils.h (fast_hash): New function.
* symtab.c (hash_demangled_name_entry): Call new function
fast_hash.

Change-Id: I77cac0d9aa78fc65316a2af449f52edcae72dc9b
gdb/ChangeLog
gdb/symtab.c
gdb/utils.h