]> 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)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Mon, 23 Sep 2024 09:27:53 +0000 (09:27 +0000)
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 d9e02f5d2416af32cb8f7469fa72f44491153065..6d750dc1c5891518dfb628839f74d7d20342ce0a 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 ());