From fd8e4663196023cae674def241981b83a3faf612 Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Tue, 22 Mar 2005 03:09:25 +0000 Subject: [PATCH] dwarf2out.c (dwarf_type_encoding_name): Remove unused prototype and definition. * dwarf2out.c (dwarf_type_encoding_name): Remove unused prototype and definition. From-SVN: r96851 --- gcc/ChangeLog | 5 +++++ gcc/dwarf2out.c | 33 --------------------------------- 2 files changed, 5 insertions(+), 33 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5e05940a293..42b4ac99dc3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-03-22 Ben Elliston + + * dwarf2out.c (dwarf_type_encoding_name): Remove unused prototype + and definition. + 2005-03-21 Mike Stump * varasm.c (default_assemble_visibility): Remove extra (). diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index cc3c9f47a5b..c4030f248b3 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -3778,9 +3778,6 @@ static int is_tagged_type (tree); static const char *dwarf_tag_name (unsigned); static const char *dwarf_attr_name (unsigned); static const char *dwarf_form_name (unsigned); -#if 0 -static const char *dwarf_type_encoding_name (unsigned); -#endif static tree decl_ultimate_origin (tree); static tree block_ultimate_origin (tree); static tree decl_class_context (tree); @@ -4548,36 +4545,6 @@ dwarf_form_name (unsigned int form) return "DW_FORM_"; } } - -/* Convert a DWARF type code into its string name. */ - -#if 0 -static const char * -dwarf_type_encoding_name (unsigned enc) -{ - switch (enc) - { - case DW_ATE_address: - return "DW_ATE_address"; - case DW_ATE_boolean: - return "DW_ATE_boolean"; - case DW_ATE_complex_float: - return "DW_ATE_complex_float"; - case DW_ATE_float: - return "DW_ATE_float"; - case DW_ATE_signed: - return "DW_ATE_signed"; - case DW_ATE_signed_char: - return "DW_ATE_signed_char"; - case DW_ATE_unsigned: - return "DW_ATE_unsigned"; - case DW_ATE_unsigned_char: - return "DW_ATE_unsigned_char"; - default: - return "DW_ATE_"; - } -} -#endif /* Determine the "ultimate origin" of a decl. The decl may be an inlined instance of an inlined instance of a decl which is local to an inline -- 2.30.2