diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-03-27 13:09:34 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:28:42 +0100 |
commit | ecbbfce5c566526b0e1eab5c9b9b1676c7dc450f (patch) | |
tree | 62bc726f4ad7e210de7418019f539d2626e86a37 /gcc/rust/ast/rust-ast-dump.h | |
parent | 1a20b5b1165f43ac9db6cfa62afe91031c2a717b (diff) | |
download | gcc-ecbbfce5c566526b0e1eab5c9b9b1676c7dc450f.zip gcc-ecbbfce5c566526b0e1eab5c9b9b1676c7dc450f.tar.gz gcc-ecbbfce5c566526b0e1eab5c9b9b1676c7dc450f.tar.bz2 |
gccrs: session: Add tokenstream dump option
Add an option to the command line interface to dump the ast back to a
tokenstream.
gcc/rust/ChangeLog:
* rust-session-manager.cc (Session::enable_dump): Enable new
dump.
(Session::compile_crate): CLI argument parsing.
(Session::dump_tokenstream): Dump the tokenstream as a string in
the specified file.
* rust-session-manager.h (struct CompileOptions): Add
tokenstream dump option.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/ast/rust-ast-dump.h')
0 files changed, 0 insertions, 0 deletions