diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-05-02 16:34:46 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:37:17 +0100 |
commit | ec5f8090a17dede3165650b0db362afbfa5819e0 (patch) | |
tree | 07abee0e21b5ea0ac72eb5ff837c2c349b2c418d /gcc/rust/Make-lang.in | |
parent | a56f04dec3eadfd4fcf1aabce00245147646d5aa (diff) | |
download | gcc-ec5f8090a17dede3165650b0db362afbfa5819e0.zip gcc-ec5f8090a17dede3165650b0db362afbfa5819e0.tar.gz gcc-ec5f8090a17dede3165650b0db362afbfa5819e0.tar.bz2 |
gccrs: ast: Move token converter out of ast module
Move the token vector to tokenstream converter out of the TokenCollector
class. This code is not exactly related to the token collection and the
code would be clearer with this rather lengthy conversion split on it's
own.
gcc/rust/ChangeLog:
* Make-lang.in: Add new rust-token-converter file.
* ast/rust-ast-collector.cc (pop_group): Function moved from
TokenCollector.
(dispatch_float_literals): Likewise.
(dispatch_integer_literals): Likewise.
(TokenCollector::collect): Removed function.
* ast/rust-ast-collector.h: Removed function prototype.
* util/rust-token-converter.cc: New file.
* util/rust-token-converter.h: New file.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/Make-lang.in')
-rw-r--r-- | gcc/rust/Make-lang.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/rust/Make-lang.in b/gcc/rust/Make-lang.in index fdfc484..31c11b8 100644 --- a/gcc/rust/Make-lang.in +++ b/gcc/rust/Make-lang.in @@ -94,6 +94,7 @@ GRS_OBJS = \ rust/rust-hir-map.o \ rust/rust-attributes.o \ rust/rust-abi.o \ + rust/rust-token-converter.o \ rust/rust-macro.o \ rust/rust-ast-lower.o \ rust/rust-ast-lower-base.o \ |