diff options
author | Marc Poulhiès <dkm@kataplop.net> | 2024-09-21 10:44:12 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-19 15:32:11 +0100 |
commit | f4abaf6ec159b96f600d11eca311a3b8a34ece42 (patch) | |
tree | 329d8feac18ab46140cf60a493159a5e42b8617b /gcc | |
parent | 1e387486fbe93769221d905aae2b896ae0cb1cd3 (diff) | |
download | gcc-f4abaf6ec159b96f600d11eca311a3b8a34ece42.zip gcc-f4abaf6ec159b96f600d11eca311a3b8a34ece42.tar.gz gcc-f4abaf6ec159b96f600d11eca311a3b8a34ece42.tar.bz2 |
gccrs: adjust hir dump of BlockExpr
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>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/hir/rust-hir-dump.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/hir/rust-hir-dump.cc b/gcc/rust/hir/rust-hir-dump.cc index 67749de..b441377 100644 --- a/gcc/rust/hir/rust-hir-dump.cc +++ b/gcc/rust/hir/rust-hir-dump.cc @@ -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 ()); |