diff options
Diffstat (limited to 'gcc/langhooks-def.h')
-rw-r--r-- | gcc/langhooks-def.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/langhooks-def.h b/gcc/langhooks-def.h index 010aaed..518509a 100644 --- a/gcc/langhooks-def.h +++ b/gcc/langhooks-def.h @@ -23,7 +23,7 @@ along with GCC; see the file COPYING3. If not see #include "hooks.h" -struct diagnostic_info; +namespace diagnostics { struct diagnostic_info; } class substring_loc; /* Note to creators of new hooks: @@ -49,9 +49,9 @@ extern void lhd_print_tree_nothing (FILE *, tree, int); extern const char *lhd_decl_printable_name (tree, int); extern const char *lhd_dwarf_name (tree, int); extern int lhd_types_compatible_p (tree, tree); -extern void lhd_print_error_function (diagnostic_text_output_format &, +extern void lhd_print_error_function (diagnostics::text_sink &, const char *, - const struct diagnostic_info *); + const diagnostics::diagnostic_info *); extern void lhd_set_decl_assembler_name (tree decl); extern void lhd_overwrite_decl_assembler_name (tree decl, tree name); extern bool lhd_warn_unused_global_decl (const_tree); @@ -71,7 +71,7 @@ extern tree lhd_builtin_function (tree); extern tree lhd_enum_underlying_base_type (const_tree); /* Declarations of default tree inlining hooks. */ -extern void lhd_initialize_diagnostics (diagnostic_context *); +extern void lhd_initialize_diagnostics (diagnostics::context *); extern void lhd_init_options (unsigned int, struct cl_decoded_option *); extern bool lhd_complain_wrong_lang_p (const struct cl_option *); |