gdb: Convert language la_search_name_hash field to a method
[deliverable/binutils-gdb.git] / gdb / f-lang.c
index 9e647f5374e786ad01e7fe30c7f8ed30d706b129..a2df46a8b4a8c516dd7a921ee6ec6b89a3cf11f5 100644 (file)
@@ -633,7 +633,6 @@ extern const struct language_data f_language_data =
   f_collect_symbol_completion_matches,
   c_watch_location_expression,
   cp_get_symbol_name_matcher,  /* la_get_symbol_name_matcher */
-  cp_search_name_hash,
   &default_varobj_ops,
   NULL,
   f_is_string_type_p,
@@ -686,6 +685,12 @@ public:
     lai->bool_type_symbol = "logical";
     lai->bool_type_default = builtin->builtin_logical_s2;
   }
+
+  /* See language.h.  */
+  unsigned int search_name_hash (const char *name) const override
+  {
+    return cp_search_name_hash (name);
+  }
 };
 
 /* Single instance of the Fortran language class.  */
This page took 0.024448 seconds and 4 git commands to generate.