]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Add debug helper to dump HIR
authorMarc Poulhiès <dkm@kataplop.net>
Mon, 18 Sep 2023 20:16:06 +0000 (22:16 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:04:37 +0000 (19:04 +0100)
commitaf2be5b555a902f4c77ba161a3dcf16902b442db
tree391d8b176bcfa03610231e6109312c6412e95bc1
parente47a980566050a290e1fbf9fb4792065ea772a47
gccrs: Add debug helper to dump HIR

Add simple debug wrapper to dump HIR nodes on stderr.
Similar to what we already have for AST.

gcc/rust/ChangeLog:

* hir/rust-hir-dump.cc (Dump::debug): New.
(debug): New.
* hir/rust-hir-dump.h (debug): New.

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