Change get_objfile_arch to a method on objfile
[deliverable/binutils-gdb.git] / gdb / dwarf2 / index-write.c
index b6a13a0ca169616b5faa31454e313d32a9d7cc3e..fc42816b1e7c517ef93649a949fb74f000d53acb 100644 (file)
@@ -1493,7 +1493,7 @@ write_debug_names (struct dwarf2_per_objfile *dwarf2_per_objfile,
   const bool dwarf5_is_dwarf64 = check_dwarf64_offsets (dwarf2_per_objfile);
   struct objfile *objfile = dwarf2_per_objfile->objfile;
   const enum bfd_endian dwarf5_byte_order
-    = gdbarch_byte_order (get_objfile_arch (objfile));
+    = gdbarch_byte_order (objfile->arch ());
 
   /* The CU list is already sorted, so we don't need to do additional
      work here.  Also, the debug_types entries do not appear in
This page took 0.024797 seconds and 4 git commands to generate.