aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/metadata/rust-imports.h
diff options
context:
space:
mode:
authorOwen Avery <powerboat9.gamer@gmail.com>2023-07-10 16:06:27 -0400
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:55:59 +0100
commitdd15fff38562ab8c3160190366f1e755c033425b (patch)
treea0e1d0a8c8f483df5d1fdb88c555f18628ffa654 /gcc/rust/metadata/rust-imports.h
parente99e565e0aa866cdec407f851d651096fb190f7f (diff)
downloadgcc-dd15fff38562ab8c3160190366f1e755c033425b.zip
gcc-dd15fff38562ab8c3160190366f1e755c033425b.tar.gz
gcc-dd15fff38562ab8c3160190366f1e755c033425b.tar.bz2
gccrs: Continue to replace usages of Location with location_t
gcc/rust/ChangeLog: * backend/rust-compile-base.cc: Replace Location with location_t. * backend/rust-compile-base.h: Likewise. * backend/rust-compile-expr.cc: Likewise. * lex/rust-token.h: Likewise. * metadata/rust-import-archive.cc: Likewise. * metadata/rust-imports.cc: Likewise. * metadata/rust-imports.h: Likewise. * rust-backend.h: Likewise. * rust-diagnostics.cc: Likewise. * rust-diagnostics.h: Likewise. * rust-gcc.cc: Likewise. * rust-linemap.cc: Likewise. * util/rust-token-converter.cc: Likewise. Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/rust/metadata/rust-imports.h')
-rw-r--r--gcc/rust/metadata/rust-imports.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/rust/metadata/rust-imports.h b/gcc/rust/metadata/rust-imports.h
index 9707a78..6645c77 100644
--- a/gcc/rust/metadata/rust-imports.h
+++ b/gcc/rust/metadata/rust-imports.h
@@ -69,7 +69,7 @@ public:
// Give an error if the next bytes do not match STR. Advance the
// read position by the length of STR.
- void require_c_string (Location location, const char *str)
+ void require_c_string (location_t location, const char *str)
{
this->require_bytes (location, str, strlen (str));
}
@@ -111,7 +111,7 @@ public:
// exports. LOCATION is the location of the import statement.
// RELATIVE_IMPORT_PATH is used as a prefix for a relative import.
static std::pair<std::unique_ptr<Stream>, std::vector<ProcMacro::Procmacro>>
- open_package (const std::string &filename, Location location,
+ open_package (const std::string &filename, location_t location,
const std::string &relative_import_path);
static std::pair<std::unique_ptr<Stream>, std::vector<ProcMacro::Procmacro>>
@@ -121,7 +121,7 @@ public:
Import (std::unique_ptr<Stream>, Location);
// The location of the import statement.
- Location location () const { return this->location_; }
+ location_t location () const { return this->location_; }
// Return the next character.
int peek_char () { return this->stream_->peek_char (); }
@@ -175,7 +175,7 @@ private:
// The stream from which to read import data.
std::unique_ptr<Stream> stream_;
// The location of the import statement we are processing.
- Location location_;
+ location_t location_;
};
// Read import data from a string.