mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
* bfd-in.h (bfd_hash_insert): Declare.
* bfd-in2.h: Regenerate. * hash.c (bfd_hash_insert): New function. Split out from.. (bfd_hash_lookup): ..here. * merge.c (sec_merge_hash_lookup): Use bfd_hash_insert.
This commit is contained in:
@ -220,16 +220,11 @@ sec_merge_hash_lookup (struct sec_merge_hash *table, const char *string,
|
||||
return NULL;
|
||||
|
||||
hashp = ((struct sec_merge_hash_entry *)
|
||||
sec_merge_hash_newfunc (NULL, &table->table, string));
|
||||
bfd_hash_insert (&table->table, string, hash));
|
||||
if (hashp == NULL)
|
||||
return NULL;
|
||||
hashp->root.string = string;
|
||||
hashp->root.hash = hash;
|
||||
hashp->len = len;
|
||||
hashp->alignment = alignment;
|
||||
hashp->root.next = table->table.table[index];
|
||||
table->table.table[index] = (struct bfd_hash_entry *) hashp;
|
||||
|
||||
return hashp;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user