]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
read.c: use string hash from hash.h for po_hash
authorAlan Modra <amodra@gmail.com>
Tue, 5 Jul 2022 00:21:18 +0000 (09:51 +0930)
committerAlan Modra <amodra@gmail.com>
Sat, 9 Jul 2022 11:51:23 +0000 (21:21 +0930)
commitd1cffdc3644b21187c3709ae3c9c757f9d59558e
tree8d878393875004cc29eaad54740e805308e537e5
parent9f6e589719d85301caf22622c892c8bbee988e60
read.c: use string hash from hash.h for po_hash

po_hash code duplicates the str_hash code in hash.h for no good reason.

* read.c (struct po_entry, po_entry_t): Delete.
(hash_po_entry, eq_po_entry, po_entry_alloc, po_entry_find): Delete.
(pop_insert): Use str_hash_insert.
(pobegin): Use str_htab_create.
(read_a_source_file, s_macro): Use str_hash_find.
gas/read.c