Change {lookup,make}_reference_type API
[deliverable/binutils-gdb.git] / gdb / python / py-xmethods.c
index d293c71b8cb40292a133add383327b68748df46e..8a9bb9b1c96d0b34991a3e911bdaf8603459cc1c 100644 (file)
@@ -466,7 +466,7 @@ gdbpy_get_xmethod_result_type (const struct extension_language_defn *extlang,
     }
   else if (TYPE_CODE (obj_type) == TYPE_CODE_REF)
     {
-      struct type *this_ref = lookup_reference_type (this_type);
+      struct type *this_ref = lookup_lvalue_reference_type (this_type);
 
       if (!types_equal (obj_type, this_ref))
        obj = value_cast (this_ref, obj);
@@ -554,7 +554,7 @@ gdbpy_invoke_xmethod (const struct extension_language_defn *extlang,
     }
   else if (TYPE_CODE (obj_type) == TYPE_CODE_REF)
     {
-      struct type *this_ref = lookup_reference_type (this_type);
+      struct type *this_ref = lookup_lvalue_reference_type (this_type);
 
       if (!types_equal (obj_type, this_ref))
        obj = value_cast (this_ref, obj);
This page took 0.025309 seconds and 4 git commands to generate.