aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-iq2000.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config/tc-iq2000.c')
-rw-r--r--gas/config/tc-iq2000.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/gas/config/tc-iq2000.c b/gas/config/tc-iq2000.c
index 307b6b0..8a9b88f 100644
--- a/gas/config/tc-iq2000.c
+++ b/gas/config/tc-iq2000.c
@@ -246,10 +246,7 @@ iq2000_add_macro (const char * name,
formal_entry ** p = &macro->formals;
macro->formal_count = 0;
- macro->formal_hash = htab_create_alloc (7, hash_formal_entry,
- eq_formal_entry,
- NULL, xcalloc, free);
-
+ macro->formal_hash = str_htab_create ();
while (*arguments != NULL)
{
@@ -275,10 +272,8 @@ iq2000_add_macro (const char * name,
sb_add_string (& formal->name, *arguments);
/* Add to macro's hash table. */
- htab_insert (macro->formal_hash,
- formal_entry_alloc (sb_terminate (& formal->name),
- formal),
- 1);
+ str_hash_insert (macro->formal_hash,
+ sb_terminate (&formal->name), formal, 1);
formal->index = macro->formal_count;
macro->formal_count++;
*p = formal;
@@ -290,7 +285,7 @@ iq2000_add_macro (const char * name,
sb_add_string (&macro_name, name);
namestr = sb_terminate (&macro_name);
- htab_insert (macro_hash, macro_entry_alloc (namestr, macro), 1);
+ str_hash_insert (macro_hash, namestr, macro, 1);
macro_defined = 1;
}