diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2020-05-02 10:24:05 +0100 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2020-06-02 13:53:10 +0100 |
commit | fb8006fd350ad9eba04c19904f9a0fcd47628b41 (patch) | |
tree | 85f3e05352415e4fbf978913ff090fa5e9567d2a /gdb/dictionary.c | |
parent | 8e25bafe932b090850854321b816685b2462c17e (diff) | |
download | gdb-fb8006fd350ad9eba04c19904f9a0fcd47628b41.zip gdb-fb8006fd350ad9eba04c19904f9a0fcd47628b41.tar.gz gdb-fb8006fd350ad9eba04c19904f9a0fcd47628b41.tar.bz2 |
gdb: Convert language la_search_name_hash field to a method
This commit changes the language_data::la_search_name_hash
function pointer member variable into a member function of
language_defn.
There should be no user visible changes after this commit.
gdb/ChangeLog:
* ada-lang.c (ada_language_data): Delete la_search_name_hash
initializer.
* c-lang.c (c_language_data): Likewise.
(cplus_language_data): Likewise.
(cplus_language::search_name_hash): New member function.
(asm_language_data): Delete la_search_name_hash initializer.
(minimal_language_data): Likewise.
* d-lang.c (d_language_data): Likewise.
* dictionary.c (default_search_name_hash): Rename to...
(language_defn::search_name_hash): ...this.
* f-lang.c (f_language_data): Likewise.
(f_language::search_name_hash): New member function.
* go-lang.c (go_language_data): Delete la_search_name_hash
initializer.
* language.c (unknown_language_data): Likewise.
(auto_language_data): Likewise.
* language.h (struct language_data): Delete la_search_name_hash
field.
(language_defn::search_name_hash): Declare new member function.
(default_search_name_hash): Delete declaration.
* m2-lang.c (m2_language_data): Delete la_search_name_hash
initializer.
* objc-lang.c (objc_language_data): Likewise.
* opencl-lang.c (opencl_language_data): Likewise.
* p-lang.c (pascal_language_data): Likewise.
* rust-lang.c (rust_language_data): Likewise.
* symtab.c (search_name_hash): Update call.
Diffstat (limited to 'gdb/dictionary.c')
-rw-r--r-- | gdb/dictionary.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dictionary.c b/gdb/dictionary.c index 0e873b6..da44946 100644 --- a/gdb/dictionary.c +++ b/gdb/dictionary.c @@ -719,7 +719,7 @@ expand_hashtable (struct dictionary *dict) /* See dictionary.h. */ unsigned int -default_search_name_hash (const char *string0) +language_defn::search_name_hash (const char *string0) const { /* The Ada-encoded version of a name P1.P2...Pn has either the form P1__P2__...Pn<suffix> or _ada_P1__P2__...Pn<suffix> (where the Pi |