gdb: Convert language la_demangle field to a method
[deliverable/binutils-gdb.git] / gdb / objc-lang.c
index 0566ce8f1886e50df4cc6f3de8f011cfc45dd3c1..1e3d1fd3616510c207437c3c1c7570690de00acc 100644 (file)
@@ -380,7 +380,6 @@ extern const struct language_data objc_language_data =
   "self",                      /* name_of_this */
   false,                       /* la_store_sym_names_in_linkage_form_p */
   basic_lookup_symbol_nonlocal,        /* lookup_symbol_nonlocal */
-  objc_demangle,               /* Language specific symbol demangler */
   NULL,                                /* Language specific
                                   class_name_from_physname */
   objc_op_print_tab,           /* Expression operators for printing */
@@ -422,6 +421,13 @@ public:
 
   /* See language.h.  */
 
+  char *demangle (const char *mangled, int options) const override
+  {
+    return objc_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.0232 seconds and 4 git commands to generate.