diff options
author | Owen Avery <powerboat9.gamer@gmail.com> | 2023-07-10 22:33:08 -0400 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2023-07-20 09:09:33 +0000 |
commit | 97cbd459f436c169d3114be803fda49948fcae96 (patch) | |
tree | b5a7c411d6e7fd7f6dfd1c8a1ad7e0fe6a3c8600 /gcc/rust/backend/rust-compile-expr.h | |
parent | 41e7dee1030e1b4813d160b9fd7206fab2302d32 (diff) | |
download | gcc-97cbd459f436c169d3114be803fda49948fcae96.zip gcc-97cbd459f436c169d3114be803fda49948fcae96.tar.gz gcc-97cbd459f436c169d3114be803fda49948fcae96.tar.bz2 |
Replace Location with location_t in gccrs backend
gcc/rust/ChangeLog:
* backend/rust-compile-base.cc: Replace Location with location_t.
* backend/rust-compile-base.h: Likewise.
* backend/rust-compile-block.cc: Likewise.
* backend/rust-compile-expr.cc: Likewise.
* backend/rust-compile-expr.h: Likewise.
* backend/rust-compile-extern.h: Likewise.
* backend/rust-compile-implitem.h: Likewise.
* backend/rust-compile-intrinsic.cc: Likewise.
* backend/rust-compile-item.h: Likewise.
* backend/rust-compile-pattern.h: Likewise.
* backend/rust-compile-resolve-path.cc: Likewise.
* backend/rust-compile-stmt.cc: Likewise.
* backend/rust-compile-type.cc: Likewise.
* backend/rust-compile.cc: Likewise.
* backend/rust-constexpr.cc: Likewise.
Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.h')
-rw-r--r-- | gcc/rust/backend/rust-compile-expr.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/rust/backend/rust-compile-expr.h b/gcc/rust/backend/rust-compile-expr.h index 82daec0..87a2282 100644 --- a/gcc/rust/backend/rust-compile-expr.h +++ b/gcc/rust/backend/rust-compile-expr.h @@ -92,11 +92,11 @@ public: protected: tree get_fn_addr_from_dyn (const TyTy::DynamicObjectType *dyn, TyTy::BaseType *receiver, TyTy::FnType *fntype, - tree receiver_ref, Location expr_locus); + tree receiver_ref, location_t expr_locus); tree get_receiver_from_dyn (const TyTy::DynamicObjectType *dyn, TyTy::BaseType *receiver, TyTy::FnType *fntype, - tree receiver_ref, Location expr_locus); + tree receiver_ref, location_t expr_locus); tree resolve_operator_overload (Analysis::RustLangItem::ItemType lang_item_type, @@ -126,10 +126,11 @@ protected: tree type_cast_expression (tree type_to_cast_to, tree expr, location_t locus); - tree array_value_expr (Location expr_locus, const TyTy::ArrayType &array_tyty, - tree array_type, HIR::ArrayElemsValues &elems); + tree array_value_expr (location_t expr_locus, + const TyTy::ArrayType &array_tyty, tree array_type, + HIR::ArrayElemsValues &elems); - tree array_copied_expr (Location expr_locus, + tree array_copied_expr (location_t expr_locus, const TyTy::ArrayType &array_tyty, tree array_type, HIR::ArrayElemsCopied &elems); |