gdb: Convert language la_print_type field to a method
[deliverable/binutils-gdb.git] / gdb / objc-lang.c
index 3082a5d058a0c6b3f1e2f313fd0de49ff55e93e5..0566ce8f1886e50df4cc6f3de8f011cfc45dd3c1 100644 (file)
@@ -373,7 +373,6 @@ extern const struct language_data objc_language_data =
   c_printchar,                /* Print a character constant */
   c_printstr,                 /* Function to print string constant */
   c_emit_char,
-  c_print_type,                        /* Print a type using appropriate syntax */
   c_print_typedef,             /* Print a typedef using appropriate syntax */
   c_value_print_inner,         /* la_value_print_inner */
   c_value_print,               /* Print a top-level value */
@@ -420,6 +419,15 @@ public:
     *demangled = objc_demangle (mangled, 0);
     return *demangled != NULL;
   }
+
+  /* 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
+  {
+    c_print_type (type, varstring, stream, show, level, flags);
+  }
 };
 
 /* Single instance of the class representing the Objective-C language.  */
This page took 0.036301 seconds and 4 git commands to generate.