diff gcc/go/go-gcc-diagnostics.cc @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
line wrap: on
line diff
--- a/gcc/go/go-gcc-diagnostics.cc	Thu Oct 25 07:37:49 2018 +0900
+++ b/gcc/go/go-gcc-diagnostics.cc	Thu Feb 13 11:34:05 2020 +0900
@@ -1,5 +1,5 @@
 // go-gcc-diagnostics.cc -- GCC implementation of go diagnostics interface.
-// Copyright (C) 2016-2018 Free Software Foundation, Inc.
+// Copyright (C) 2016-2020 Free Software Foundation, Inc.
 // Contributed by Than McIntosh, Google.
 
 // This file is part of GCC.
@@ -24,7 +24,7 @@
 void
 go_be_error_at(const Location location, const std::string& errmsg)
 {
-  source_location gcc_loc = location.gcc_location();
+  location_t gcc_loc = location.gcc_location();
   error_at(gcc_loc, "%s", errmsg.c_str());
 }
 
@@ -33,7 +33,7 @@
 go_be_warning_at(const Location location,
                  int opt, const std::string& warningmsg)
 {
-  source_location gcc_loc = location.gcc_location();
+  location_t gcc_loc = location.gcc_location();
   warning_at(gcc_loc, opt, "%s", warningmsg.c_str());
 }
 
@@ -41,7 +41,7 @@
 go_be_fatal_error(const Location location,
                   const std::string& fatalmsg)
 {
-  source_location gcc_loc = location.gcc_location();
+  location_t gcc_loc = location.gcc_location();
   fatal_error(gcc_loc, "%s", fatalmsg.c_str());
 }
 
@@ -49,7 +49,7 @@
 go_be_inform(const Location location,
              const std::string& infomsg)
 {
-  source_location gcc_loc = location.gcc_location();
+  location_t gcc_loc = location.gcc_location();
   inform(gcc_loc, "%s", infomsg.c_str());
 }