]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: adjust hir dump of BlockExpr
authorMarc Poulhiès <dkm@kataplop.net>
Sat, 21 Sep 2024 08:44:12 +0000 (10:44 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Wed, 19 Mar 2025 14:32:11 +0000 (15:32 +0100)
Add tail_reachable and label fields to the dump.

gcc/rust/ChangeLog:

* hir/rust-hir-dump.cc (Dump::visit): Add missing fields.

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
gcc/rust/hir/rust-hir-dump.cc

index 67749de49a6869b269907c8e2f7c79ff2e3a31a9..b44137732348d7cbedd61e02ef03d76d58773fe7 100644 (file)
@@ -1270,6 +1270,8 @@ Dump::visit (BlockExpr &e)
   begin ("BlockExpr");
   do_expr (e);
   do_inner_attrs (e);
+  put_field ("tail_reachable", std::to_string (e.is_tail_reachable ()));
+  put_field ("label", e.get_label ().as_string ());
 
   visit_collection ("statements", e.get_statements ());