diff options
author | Tom Tromey <tromey@redhat.com> | 2010-02-19 22:22:48 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2010-02-19 22:22:48 +0000 |
commit | 072ca5eae217783c4bb986bac3db1dd7c0b70c4b (patch) | |
tree | 3d38c8f2ba06827d9f9f2195d6e3f2e13f4e9062 /gdb/c-typeprint.c | |
parent | 649708b02c904af6a21ed548352c2cc6150dde9b (diff) | |
download | gdb-072ca5eae217783c4bb986bac3db1dd7c0b70c4b.tar.gz |
* p-typeprint.c (pascal_type_print_varspec_prefix): Update.
* m2-typeprint.c (m2_print_type): Update.
* gdbtypes.c (recursive_dump_type): Update.
(copy_type_recursive): Update.
* c-typeprint.c (c_type_print_varspec_prefix): Update.
(c_type_print_base): Update.
* gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
Remove.
(struct cplus_struct_type) <ntemplate_args>: Remove.
<struct template_arg>: Remove.
<is_dynamic>: Move earlier.
(TYPE_TEMPLATE_ARGS): Remove.
(TYPE_NTEMPLATE_ARGS): Remove.
(TYPE_TEMPLATE_ARG): Remove.
Diffstat (limited to 'gdb/c-typeprint.c')
-rw-r--r-- | gdb/c-typeprint.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c index ed9838109f6..3a0aa599bab 100644 --- a/gdb/c-typeprint.c +++ b/gdb/c-typeprint.c @@ -292,7 +292,6 @@ c_type_print_varspec_prefix (struct type *type, struct ui_file *stream, case TYPE_CODE_STRING: case TYPE_CODE_BITSTRING: case TYPE_CODE_COMPLEX: - case TYPE_CODE_TEMPLATE: case TYPE_CODE_NAMESPACE: case TYPE_CODE_DECFLOAT: /* These types need no prefix. They are listed here so that @@ -616,7 +615,6 @@ c_type_print_varspec_suffix (struct type *type, struct ui_file *stream, case TYPE_CODE_STRING: case TYPE_CODE_BITSTRING: case TYPE_CODE_COMPLEX: - case TYPE_CODE_TEMPLATE: case TYPE_CODE_NAMESPACE: case TYPE_CODE_DECFLOAT: /* These types do not need a suffix. They are listed so that @@ -1100,25 +1098,6 @@ c_type_print_base (struct type *type, struct ui_file *stream, int show, fprintf_filtered (stream, _("<range type>")); break; - case TYPE_CODE_TEMPLATE: - /* Called on "ptype t" where "t" is a template. - Prints the template header (with args), e.g.: - template <class T1, class T2> class " - and then merges with the struct/union/class code to - print the rest of the definition. */ - c_type_print_modifier (type, stream, 0, 1); - fprintf_filtered (stream, "template <"); - for (i = 0; i < TYPE_NTEMPLATE_ARGS (type); i++) - { - struct template_arg templ_arg; - templ_arg = TYPE_TEMPLATE_ARG (type, i); - fprintf_filtered (stream, "class %s", templ_arg.name); - if (i < TYPE_NTEMPLATE_ARGS (type) - 1) - fprintf_filtered (stream, ", "); - } - fprintf_filtered (stream, "> class "); - goto struct_union; - case TYPE_CODE_NAMESPACE: fputs_filtered ("namespace ", stream); fputs_filtered (TYPE_TAG_NAME (type), stream); |