gdb: Convert language la_demangle field to a method
[deliverable/binutils-gdb.git] / gdb / go-lang.c
index 1ec53474cf005f9181e91930aa15c5ad3ad93bed..6bd87aa597bba0af39d7481aa82e8c21334a9cf4 100644 (file)
@@ -540,7 +540,6 @@ extern const struct language_data go_language_data =
   NULL,                                /* name_of_this */
   false,                       /* la_store_sym_names_in_linkage_form_p */
   basic_lookup_symbol_nonlocal, 
-  go_demangle,                 /* Language specific symbol demangler.  */
   NULL,                                /* Language specific
                                   class_name_from_physname.  */
   go_op_print_tab,             /* Expression operators for printing.  */
@@ -628,6 +627,13 @@ public:
 
   /* See language.h.  */
 
+  char *demangle (const char *mangled, int options) const override
+  {
+    return go_demangle (mangled, options);
+  }
+
+  /* See language.h.  */
+
   void print_type (struct type *type, const char *varstring,
                   struct ui_file *stream, int show, int level,
                   const struct type_print_options *flags) const override
This page took 0.024509 seconds and 4 git commands to generate.