]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Add dump configuration options, fix node exclusion
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Tue, 9 Dec 2025 04:49:03 +0000 (05:49 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Wed, 17 Dec 2025 06:20:12 +0000 (07:20 +0100)
commit64f0f4270282f72e5f4ade42796d00a5ed88bd92
treeab35e73170354247f63564713132e467eb03051f
parent50318fcc67d274d493d48aaf1e42c1187da81ad2
gccrs: Add dump configuration options, fix node exclusion

gcc/rust/ChangeLog:

* ast/rust-ast-collector.cc (TokenCollector::begin_describe_node):
Remove function.
(TokenCollector::end_describe_node): Likewise.
(TokenCollector::describe_node): Remove calls to begin/end.
* ast/rust-ast-collector.h: Specialize begin and end collect items. Add
more constructors to begin/end description.
* ast/rust-ast-dump.cc (Dump::Dump): Adapt to new configuration
options.
* ast/rust-ast-dump.h: Add new configuration options.
* rust-session-manager.cc (Session::dump_ast_pretty_internal): Use new
configuration options.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/ast/rust-ast-collector.cc
gcc/rust/ast/rust-ast-collector.h
gcc/rust/ast/rust-ast-dump.cc
gcc/rust/ast/rust-ast-dump.h
gcc/rust/rust-session-manager.cc