]> gcc.gnu.org Git - gcc.git/commit
gccrs: session: Add tokenstream dump option
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Mon, 27 Mar 2023 11:09:34 +0000 (13:09 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:28:42 +0000 (18:28 +0100)
commitecbbfce5c566526b0e1eab5c9b9b1676c7dc450f
tree62bc726f4ad7e210de7418019f539d2626e86a37
parent1a20b5b1165f43ac9db6cfa62afe91031c2a717b
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>
gcc/rust/rust-session-manager.cc
gcc/rust/rust-session-manager.h
This page took 0.059508 seconds and 5 git commands to generate.