diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2020-09-14 11:08:02 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2020-09-14 11:08:02 -0400 |
commit | a409645d13f6cddef4827cf7240c01ec3e09559c (patch) | |
tree | a446c4702fd973b9e71b1fea594bf3e3aff5a68b /gdb/c-typeprint.c | |
parent | 1d6286ed048eb1997a0afea0f18cb9eb1789f386 (diff) | |
download | binutils-gdb-a409645d13f6cddef4827cf7240c01ec3e09559c.tar.gz |
gdb: remove TYPE_VARARGS
gdb/ChangeLog:
* gdbtypes.h (TYPE_VARARGS): Remove, replace all
uses with type::has_varargs.
Change-Id: Ieea4a64b4bfa4b8be643e68cb403081881133740
Diffstat (limited to 'gdb/c-typeprint.c')
-rw-r--r-- | gdb/c-typeprint.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c index 37bb16e6dae..0c2268f8d0a 100644 --- a/gdb/c-typeprint.c +++ b/gdb/c-typeprint.c @@ -279,7 +279,7 @@ cp_type_print_method_args (struct type *mtype, const char *prefix, { struct field *args = mtype->fields (); int nargs = mtype->num_fields (); - int varargs = TYPE_VARARGS (mtype); + int varargs = mtype->has_varargs (); int i; fprintf_symbol_filtered (stream, prefix, @@ -591,12 +591,12 @@ c_type_print_args (struct type *type, struct ui_file *stream, printed_any = 1; } - if (printed_any && TYPE_VARARGS (type)) + if (printed_any && type->has_varargs ()) { /* Print out a trailing ellipsis for varargs functions. Ignore TYPE_VARARGS if the function has no named arguments; that represents unprototyped (K&R style) C functions. */ - if (printed_any && TYPE_VARARGS (type)) + if (printed_any && type->has_varargs ()) { fprintf_filtered (stream, ", "); wrap_here (" "); |