gdb: remove LA_PRINT_TYPEDEF macro
authorAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 14 Aug 2020 13:52:26 +0000 (14:52 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 23 Oct 2020 09:57:14 +0000 (10:57 +0100)
Remove the LA_PRINT_TYPEDEF macro, replace the single use with the
macros definition.

There should be no user visible changes after this commit.

gdb/ChangeLog:

* language.h (LA_PRINT_TYPEDEF): Delete.
* typeprint.c (typedef_print): Call print_typedef directly on the
current_language object.

gdb/ChangeLog
gdb/language.h
gdb/typeprint.c

index e9ab8ec22264aa7df3182932a420a539b4c2d000..c517470c9d9b4abbbb5e59ba0ff6d17ea7453d8e 100644 (file)
@@ -1,3 +1,9 @@
+2020-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * language.h (LA_PRINT_TYPEDEF): Delete.
+       * typeprint.c (typedef_print): Call print_typedef directly on the
+       current_language object.
+
 2020-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
 
        * m2-exp.y (m2_parse): Rename to...
index 3ee6476cbbb7e70fd0ec2a0b051257afeeff21dc..3452149c9ca760570549b69c381639833d83ae80 100644 (file)
@@ -644,9 +644,6 @@ extern enum language set_language (enum language);
 #define LA_PRINT_TYPE(type,varstring,stream,show,level,flags)          \
   (current_language->print_type(type,varstring,stream,show,level,flags))
 
-#define LA_PRINT_TYPEDEF(type,new_symbol,stream) \
-  (current_language->print_typedef (type,new_symbol,stream))
-
 #define LA_VALUE_PRINT(val,stream,options) \
   (current_language->value_print (val,stream,options))
 
index 82ca42579627f7be3a824809503c77acaf515851..40ad239eaef71014b6167c72d86f7ab6534cacce 100644 (file)
@@ -358,7 +358,7 @@ typedef_hash_table::find_typedef (const struct type_print_options *flags,
 void
 typedef_print (struct type *type, struct symbol *newobj, struct ui_file *stream)
 {
-  LA_PRINT_TYPEDEF (type, newobj, stream);
+  current_language->print_typedef (type, newobj, stream);
 }
 
 /* Print a description of a type TYPE in the form of a declaration of a