aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/Make-lang.in
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-11-08 10:50:00 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 19:13:13 +0100
commit0344e23236c8e28b80ce1b14a3a4394918953f2e (patch)
tree2f3179ab85b009befa9e649a4bac476c683223ec /gcc/rust/Make-lang.in
parent65de922f9bdb52b308430d2ae11b99c2c98db053 (diff)
downloadgcc-0344e23236c8e28b80ce1b14a3a4394918953f2e.zip
gcc-0344e23236c8e28b80ce1b14a3a4394918953f2e.tar.gz
gcc-0344e23236c8e28b80ce1b14a3a4394918953f2e.tar.bz2
gccrs: Add new keyword utility class
Much like attributes values, keywords are known beforehand and never change. Instead of relying on handcrafted string we could centralize everything in one place. We may require to check whether a word is a keyword, which can now be done easily thanks to the keyword set. gcc/rust/ChangeLog: * Make-lang.in: Add rust-keyword-values.cc to the list. * util/rust-keyword-values.cc: New file. * util/rust-keyword-values.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.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/rust/Make-lang.in b/gcc/rust/Make-lang.in
index 1ff179f..f2cadd5 100644
--- a/gcc/rust/Make-lang.in
+++ b/gcc/rust/Make-lang.in
@@ -100,6 +100,7 @@ GRS_OBJS = \
rust/rust-hir.o \
rust/rust-hir-map.o \
rust/rust-attributes.o \
+ rust/rust-keyword-values.o \
rust/rust-abi.o \
rust/rust-token-converter.o \
rust/rust-macro.o \