* objfiles.c (allocate_objfile): Move comment to better place.
[deliverable/binutils-gdb.git] / gdb / objfiles.c
index 59ab632f7370cd70adb6aea98edc0fcda6eaaef5..b10f803540fa3767c276e5ac7a834e26cf0f3dd1 100644 (file)
@@ -280,10 +280,6 @@ allocate_objfile (bfd *abfd, const char *name, int flags)
 
   objfile_alloc_data (objfile);
 
-  /* Update the per-objfile information that comes from the bfd, ensuring
-     that any data that is reference is saved in the per-objfile data
-     region.  */
-
   if (name == NULL)
     {
       gdb_assert (abfd == NULL);
@@ -292,6 +288,10 @@ allocate_objfile (bfd *abfd, const char *name, int flags)
   objfile->original_name = obstack_copy0 (&objfile->objfile_obstack, name,
                                          strlen (name));
 
+  /* Update the per-objfile information that comes from the bfd, ensuring
+     that any data that is reference is saved in the per-objfile data
+     region.  */
+
   objfile->obfd = abfd;
   gdb_bfd_ref (abfd);
   if (abfd != NULL)
This page took 0.023904 seconds and 4 git commands to generate.