Turn parse_gdbarch into a method
[deliverable/binutils-gdb.git] / gdb / rust-exp.y
index 1379030730c1da47b005b78733e567498f6f2bb2..60eb6172f0365f4807f2e7acc8d1469e97706382 100644 (file)
@@ -211,7 +211,7 @@ struct rust_parser
   /* Return the parser's gdbarch.  */
   struct gdbarch *arch () const
   {
-    return parse_gdbarch (pstate);
+    return pstate->gdbarch ();
   }
 
   /* A helper to look up a Rust type, or fail.  This only works for
@@ -2281,7 +2281,7 @@ rust_parser::convert_ast_to_expression (const struct rust_op *operation,
          struct type *type;
 
          type = language_lookup_primitive_type (parse_language (pstate),
-                                                parse_gdbarch (pstate),
+                                                pstate->gdbarch (),
                                                 "()");
 
          write_exp_elt_opcode (pstate, OP_LONG);
This page took 0.027553 seconds and 4 git commands to generate.