diff options
author | Owen Avery <powerboat9.gamer@gmail.com> | 2023-07-10 16:06:27 -0400 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:55:59 +0100 |
commit | dd15fff38562ab8c3160190366f1e755c033425b (patch) | |
tree | a0e1d0a8c8f483df5d1fdb88c555f18628ffa654 /gcc/rust/backend | |
parent | e99e565e0aa866cdec407f851d651096fb190f7f (diff) | |
download | gcc-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/backend')
-rw-r--r-- | gcc/rust/backend/rust-compile-base.cc | 4 | ||||
-rw-r--r-- | gcc/rust/backend/rust-compile-base.h | 2 | ||||
-rw-r--r-- | gcc/rust/backend/rust-compile-expr.cc | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/gcc/rust/backend/rust-compile-base.cc b/gcc/rust/backend/rust-compile-base.cc index 0051d0f..010049e 100644 --- a/gcc/rust/backend/rust-compile-base.cc +++ b/gcc/rust/backend/rust-compile-base.cc @@ -417,7 +417,7 @@ HIRCompileBase::mark_addressable (tree exp, location_t locus) } tree -HIRCompileBase::address_expression (tree expr, Location location) +HIRCompileBase::address_expression (tree expr, location_t location) { if (expr == error_mark_node) return error_mark_node; @@ -748,7 +748,7 @@ HIRCompileBase::compile_constant_item ( tree HIRCompileBase::named_constant_expression (tree type_tree, const std::string &name, - tree const_val, Location location) + tree const_val, location_t location) { if (type_tree == error_mark_node || const_val == error_mark_node) return error_mark_node; diff --git a/gcc/rust/backend/rust-compile-base.h b/gcc/rust/backend/rust-compile-base.h index 086c0c3..d355446 100644 --- a/gcc/rust/backend/rust-compile-base.h +++ b/gcc/rust/backend/rust-compile-base.h @@ -139,7 +139,7 @@ protected: static tree named_constant_expression (tree type_tree, const std::string &name, - tree const_val, Location location); + tree const_val, location_t location); }; } // namespace Compile diff --git a/gcc/rust/backend/rust-compile-expr.cc b/gcc/rust/backend/rust-compile-expr.cc index c06c981..9358ce2 100644 --- a/gcc/rust/backend/rust-compile-expr.cc +++ b/gcc/rust/backend/rust-compile-expr.cc @@ -2070,7 +2070,7 @@ CompileExpr::compile_byte_string_literal (const HIR::LiteralExpr &expr, tree CompileExpr::type_cast_expression (tree type_to_cast_to, tree expr_tree, - Location location) + location_t location) { if (type_to_cast_to == error_mark_node || expr_tree == error_mark_node || TREE_TYPE (expr_tree) == error_mark_node) |