Move link_hash_table_free functions earlier
[deliverable/binutils-gdb.git] / bfd / elf-m10300.c
index 413e9da90d1d6dc25fb6eaea109ebaba2eb15537..58c8c73fe53f159349cdaa019dbb551670966818 100644 (file)
@@ -4598,6 +4598,20 @@ _bfd_mn10300_copy_indirect_symbol (struct bfd_link_info *        info,
   _bfd_elf_link_hash_copy_indirect (info, dir, ind);
 }
 
+/* Destroy an mn10300 ELF linker hash table.  */
+
+static void
+elf32_mn10300_link_hash_table_free (struct bfd_link_hash_table *hash)
+{
+  struct elf32_mn10300_link_hash_table *ret
+    = (struct elf32_mn10300_link_hash_table *) hash;
+
+  _bfd_elf_link_hash_table_free
+    ((struct bfd_link_hash_table *) ret->static_hash_table);
+  _bfd_elf_link_hash_table_free
+    ((struct bfd_link_hash_table *) ret);
+}
+
 /* Create an mn10300 ELF linker hash table.  */
 
 static struct bfd_link_hash_table *
@@ -4641,20 +4655,6 @@ elf32_mn10300_link_hash_table_create (bfd *abfd)
   return & ret->root.root;
 }
 
-/* Free an mn10300 ELF linker hash table.  */
-
-static void
-elf32_mn10300_link_hash_table_free (struct bfd_link_hash_table *hash)
-{
-  struct elf32_mn10300_link_hash_table *ret
-    = (struct elf32_mn10300_link_hash_table *) hash;
-
-  _bfd_elf_link_hash_table_free
-    ((struct bfd_link_hash_table *) ret->static_hash_table);
-  _bfd_elf_link_hash_table_free
-    ((struct bfd_link_hash_table *) ret);
-}
-
 static unsigned long
 elf_mn10300_mach (flagword flags)
 {
This page took 0.030017 seconds and 4 git commands to generate.