diff options
Diffstat (limited to 'gcc/m2/gm2-gcc/m2linemap.cc')
-rw-r--r-- | gcc/m2/gm2-gcc/m2linemap.cc | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/gcc/m2/gm2-gcc/m2linemap.cc b/gcc/m2/gm2-gcc/m2linemap.cc index feb62b3..89a1080 100644 --- a/gcc/m2/gm2-gcc/m2linemap.cc +++ b/gcc/m2/gm2-gcc/m2linemap.cc @@ -188,12 +188,13 @@ m2linemap_ErrorAt (location_t location, char *message) static void m2linemap_ErrorAtf_1 (location_t location, const char *message, ...) { - diagnostic_info diagnostic; + diagnostics::diagnostic_info diagnostic; va_list ap; rich_location richloc (line_table, location); va_start (ap, message); - diagnostic_set_info (&diagnostic, message, &ap, &richloc, DK_ERROR); + diagnostic_set_info (&diagnostic, message, &ap, &richloc, + diagnostics::kind::error); diagnostic_report_diagnostic (global_dc, &diagnostic); va_end (ap); } @@ -209,12 +210,13 @@ m2linemap_ErrorAtf (location_t location, const char *message) static void m2linemap_WarningAtf_1 (location_t location, const char *message, ...) { - diagnostic_info diagnostic; + diagnostics::diagnostic_info diagnostic; va_list ap; rich_location richloc (line_table, location); va_start (ap, message); - diagnostic_set_info (&diagnostic, message, &ap, &richloc, DK_WARNING); + diagnostic_set_info (&diagnostic, message, &ap, &richloc, + diagnostics::kind::warning); diagnostic_report_diagnostic (global_dc, &diagnostic); va_end (ap); } @@ -230,12 +232,13 @@ m2linemap_WarningAtf (location_t location, const char *message) static void m2linemap_NoteAtf_1 (location_t location, const char *message, ...) { - diagnostic_info diagnostic; + diagnostics::diagnostic_info diagnostic; va_list ap; rich_location richloc (line_table, location); va_start (ap, message); - diagnostic_set_info (&diagnostic, message, &ap, &richloc, DK_NOTE); + diagnostic_set_info (&diagnostic, message, &ap, &richloc, + diagnostics::kind::note); diagnostic_report_diagnostic (global_dc, &diagnostic); va_end (ap); } |