aboutsummaryrefslogtreecommitdiff
path: root/bfd/merge.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-09-19 12:08:34 +0000
committerAlan Modra <amodra@gmail.com>2007-09-19 12:08:34 +0000
commita69898aad0d92d44881d16b6d5d835c3af53b9c1 (patch)
tree9d84644dcc2c6a865c3d475b1193ee1020a013a1 /bfd/merge.c
parent4dcdce139ffe08fec50cd24e688c3e0e21d545c1 (diff)
downloadgdb-a69898aad0d92d44881d16b6d5d835c3af53b9c1.zip
gdb-a69898aad0d92d44881d16b6d5d835c3af53b9c1.tar.gz
gdb-a69898aad0d92d44881d16b6d5d835c3af53b9c1.tar.bz2
* 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.
Diffstat (limited to 'bfd/merge.c')
-rw-r--r--bfd/merge.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/bfd/merge.c b/bfd/merge.c
index 2e805c7..32994c3 100644
--- a/bfd/merge.c
+++ b/bfd/merge.c
@@ -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;
}