Turn parse_language into a method
[deliverable/binutils-gdb.git] / gdb / p-exp.y
index d4b315061b03105e7f550a8208ad9a8d65e6d5e3..79b2979f6a7f2785761fa508c59a8d03ded88b5f 100644 (file)
@@ -591,7 +591,7 @@ exp :       THIS
                          write_exp_elt_opcode (pstate, OP_THIS);
                          /* We need type of this.  */
                          this_val
-                           = value_of_this_silent (parse_language (pstate));
+                           = value_of_this_silent (pstate->language ());
                          if (this_val)
                            this_type = value_type (this_val);
                          else
@@ -731,7 +731,7 @@ variable:   name_not_typename
                              write_exp_elt_opcode (pstate, STRUCTOP_PTR);
                              /* We need type of this.  */
                              this_val
-                               = value_of_this_silent (parse_language (pstate));
+                               = value_of_this_silent (pstate->language ());
                              if (this_val)
                                this_type = value_type (this_val);
                              else
@@ -1675,7 +1675,7 @@ yylex (void)
          return TYPENAME;
         }
     yylval.tsym.type
-      = language_lookup_primitive_type (parse_language (pstate),
+      = language_lookup_primitive_type (pstate->language (),
                                        pstate->gdbarch (), tmp);
     if (yylval.tsym.type != NULL)
       {
This page took 0.024614 seconds and 4 git commands to generate.