diff options
author | Charalampos Mitrodimas <charmitro@gmail.com> | 2023-06-03 18:09:26 +0000 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2023-06-06 12:46:02 +0000 |
commit | e11efa45bf12142b0599f017a8f07a1817375703 (patch) | |
tree | 466e95562f42083a90eec26cc8005ad26e67ee08 /gcc/gdbhooks.py | |
parent | cc09d0bf04fd87afb9f2b717d485a380a05e0a73 (diff) | |
download | gcc-e11efa45bf12142b0599f017a8f07a1817375703.zip gcc-e11efa45bf12142b0599f017a8f07a1817375703.tar.gz gcc-e11efa45bf12142b0599f017a8f07a1817375703.tar.bz2 |
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/gdbhooks.py')
0 files changed, 0 insertions, 0 deletions