Port gas/config/* to str_htab.
[deliverable/binutils-gdb.git] / gas / config / tc-mcore.c
index da58e7b4c447bc7ea02a1fdceafe078d76fb3bc7..a0927dbfc0bcd7411dedcc1f7c14b0d4ba470822 100644 (file)
@@ -135,7 +135,7 @@ static unsigned long poolspan;
 #define SPANEXIT       (600)
 static symbolS * poolsym;              /* Label for current pool.  */
 static char poolname[8];
-static struct hash_control * opcode_hash_control;      /* Opcode mnemonics.  */
+static htab_t  opcode_hash_control;    /* Opcode mnemonics.  */
 
 #define POOL_END_LABEL   ".LE"
 #define POOL_START_LABEL ".LS"
@@ -457,7 +457,7 @@ md_begin (void)
   const char * prev_name = "";
   unsigned int i;
 
-  opcode_hash_control = hash_new ();
+  opcode_hash_control = str_htab_create ();
 
   /* Insert unique names into hash table.  */
   for (i = 0; i < ARRAY_SIZE (mcore_table); i++)
@@ -465,7 +465,7 @@ md_begin (void)
       if (! streq (prev_name, mcore_table[i].name))
        {
          prev_name = mcore_table[i].name;
-         hash_insert (opcode_hash_control, mcore_table[i].name, (char *) &mcore_table[i]);
+         str_hash_insert (opcode_hash_control, mcore_table[i].name, (char *) &mcore_table[i]);
        }
     }
 }
@@ -881,7 +881,7 @@ md_assemble (char * str)
       return;
     }
 
-  opcode = (mcore_opcode_info *) hash_find (opcode_hash_control, name);
+  opcode = (mcore_opcode_info *) str_hash_find (opcode_hash_control, name);
   if (opcode == NULL)
     {
       as_bad (_("unknown opcode \"%s\""), name);
This page took 0.026843 seconds and 4 git commands to generate.