Change get_objfile_arch to a method on objfile
[deliverable/binutils-gdb.git] / gdb / value.c
index f722c272d8b0a8dc6ea27d6ead7e5bf12dc999a2..6e2a9ba4fccc3350604825640dfa7f76adbd69e6 100644 (file)
@@ -3068,7 +3068,7 @@ value_fn_field (struct value **arg1p, struct fn_field *f,
       /* The minimal symbol might point to a function descriptor;
         resolve it to the actual code address instead.  */
       struct objfile *objfile = msym.objfile;
-      struct gdbarch *gdbarch = get_objfile_arch (objfile);
+      struct gdbarch *gdbarch = objfile->arch ();
 
       set_value_address (v,
        gdbarch_convert_from_func_ptr_addr
This page took 0.025263 seconds and 4 git commands to generate.