+2015-03-05 Eric Botcazou <ebotcazou@adacore.com>
+
+ PR ada/65319
+ * c-ada-spec.c (print_destructor): Remove obsolete code.
+
2015-03-01 Eric Botcazou <ebotcazou@adacore.com>
* c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
print_destructor (pretty_printer *buffer, tree t)
{
tree decl_name = DECL_NAME (DECL_ORIGIN (t));
- const char *s = IDENTIFIER_POINTER (decl_name);
- if (*s == '_')
- {
- for (s += 2; *s != ' '; s++)
- pp_character (buffer, *s);
- }
- else
- {
- pp_string (buffer, "Delete_");
- pp_ada_tree_identifier (buffer, decl_name, t, false);
- }
+ pp_string (buffer, "Delete_");
+ pp_ada_tree_identifier (buffer, decl_name, t, false);
}
/* Return the name of type T. */