aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-block.cc
diff options
context:
space:
mode:
authorOwen Avery <powerboat9.gamer@gmail.com>2023-07-10 22:33:08 -0400
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:55:57 +0100
commit1ed62a2be747760de4f8902c7f17ce04783b9bed (patch)
tree9eb310b81252a41ae280d06d223b70658044840c /gcc/rust/backend/rust-compile-block.cc
parentf67f840d291516112b530d961fc73d5a2ace77e2 (diff)
downloadgcc-1ed62a2be747760de4f8902c7f17ce04783b9bed.zip
gcc-1ed62a2be747760de4f8902c7f17ce04783b9bed.tar.gz
gcc-1ed62a2be747760de4f8902c7f17ce04783b9bed.tar.bz2
gccrs: 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-block.cc')
-rw-r--r--gcc/rust/backend/rust-compile-block.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/rust/backend/rust-compile-block.cc b/gcc/rust/backend/rust-compile-block.cc
index 71d9cde..709be0e 100644
--- a/gcc/rust/backend/rust-compile-block.cc
+++ b/gcc/rust/backend/rust-compile-block.cc
@@ -40,8 +40,8 @@ CompileBlock::visit (HIR::BlockExpr &expr)
{
fncontext fnctx = ctx->peek_fn ();
tree fndecl = fnctx.fndecl;
- Location start_location = expr.get_locus ();
- Location end_location = expr.get_end_locus ();
+ location_t start_location = expr.get_locus ();
+ location_t end_location = expr.get_end_locus ();
auto body_mappings = expr.get_mappings ();
Resolver::Rib *rib = nullptr;
@@ -130,8 +130,8 @@ CompileConditionalBlocks::visit (HIR::IfExprConseqElse &expr)
// else block
std::vector<Bvariable *> locals;
- Location start_location = expr.get_else_block ()->get_locus ();
- Location end_location = expr.get_else_block ()->get_locus (); // FIXME
+ location_t start_location = expr.get_else_block ()->get_locus ();
+ location_t end_location = expr.get_else_block ()->get_locus (); // FIXME
tree enclosing_scope = ctx->peek_enclosing_scope ();
tree else_block = ctx->get_backend ()->block (fndecl, enclosing_scope, locals,
start_location, end_location);