]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/go/go-gcc-diagnostics.cc
Eliminate source_location in favor of location_t
[thirdparty/gcc.git] / gcc / go / go-gcc-diagnostics.cc
index 4d03fa514617185fdfd9cb67b70f366be76fdc35..6ddf0f4d59666b650d729b9f8d12feaa88c51c9e 100644 (file)
@@ -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 @@ void
 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 @@ void
 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 @@ void
 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());
 }