diff libcc1/libcc1plugin.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/libcc1/libcc1plugin.cc	Thu Oct 25 07:37:49 2018 +0900
+++ b/libcc1/libcc1plugin.cc	Thu Feb 13 11:34:05 2020 +0900
@@ -1,5 +1,5 @@
 /* Library interface to C front end
-   Copyright (C) 2014-2018 Free Software Foundation, Inc.
+   Copyright (C) 2014-2020 Free Software Foundation, Inc.
 
    This file is part of GCC.
 
@@ -187,15 +187,15 @@
     return t;
   }
 
-  source_location get_source_location (const char *filename,
-				       unsigned int line_number)
+  location_t get_location_t (const char *filename,
+			     unsigned int line_number)
   {
     if (filename == NULL)
       return UNKNOWN_LOCATION;
 
     filename = intern_filename (filename);
     linemap_add (line_table, LC_ENTER, false, filename, line_number);
-    source_location loc = linemap_line_start (line_table, line_number, 0);
+    location_t loc = linemap_line_start (line_table, line_number, 0);
     linemap_add (line_table, LC_LEAVE, false, NULL, 0);
     return loc;
   }
@@ -397,7 +397,7 @@
       abort ();
     }
 
-  source_location loc = ctx->get_source_location (filename, line_number);
+  location_t loc = ctx->get_location_t (filename, line_number);
 
   decl = build_decl (loc, code, identifier, sym_type);
   TREE_USED (decl) = 1;
@@ -448,7 +448,7 @@
 {
   plugin_context *ctx = static_cast<plugin_context *> (self);
   tree t = convert_in (tagged_type), x;
-  c_pushtag (ctx->get_source_location (filename, line_number),
+  c_pushtag (ctx->get_location_t (filename, line_number),
 	     get_identifier (name), t);
 
   /* Propagate the newly-added type name so that previously-created
@@ -884,7 +884,7 @@
   tree type = convert_in (type_in);
 
   cst = build_int_cst (type, value);
-  decl = build_decl (ctx->get_source_location (filename, line_number),
+  decl = build_decl (ctx->get_location_t (filename, line_number),
 		     CONST_DECL, get_identifier (name), type);
   DECL_INITIAL (decl) = cst;
   pushdecl_safe (decl);