aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/Make-lang.in
diff options
context:
space:
mode:
authorCharalampos Mitrodimas <charmitro@gmail.com>2023-06-03 18:09:26 +0000
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:46:24 +0100
commitd4ac20b6b426f92d536806ecbb05722570a2e605 (patch)
treeb0ca525a699687f902c3a2db273c58ab51d1dcb6 /gcc/rust/Make-lang.in
parent446c19201459ed73bc100b4844e8ecccee5bfe2e (diff)
downloadgcc-d4ac20b6b426f92d536806ecbb05722570a2e605.zip
gcc-d4ac20b6b426f92d536806ecbb05722570a2e605.tar.gz
gcc-d4ac20b6b426f92d536806ecbb05722570a2e605.tar.bz2
gccrs: ast: dump literals correctly
This commit fixes printing of literals based on their type. Previous implementation printed literals the same, regardless their type. Now we are printing: * int, float, bool don't require special printing * char -> '<char>' * string -> "<string>" * byte -> b'<byte>' * byte_string -> b"<byte_string>" gcc/rust/ChangeLog: * ast/rust-ast-dump.cc (Dump::visit): print literals based on their type. Signed-off-by: Charalampos Mitrodimas <charmitro@gmail.com>
Diffstat (limited to 'gcc/rust/Make-lang.in')
0 files changed, 0 insertions, 0 deletions