diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-06-23 16:17:51 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:56:04 +0100 |
commit | 79df2b3cafa586e2c3ba357e1448be3ad789d24e (patch) | |
tree | 3ebefacba577720f44a2059cd8d078f8d4635bd7 /gcc/rust/Make-lang.in | |
parent | 47576fa5a866ad0d7ff0112e7d4a9f3dd764f7cc (diff) | |
download | gcc-79df2b3cafa586e2c3ba357e1448be3ad789d24e.zip gcc-79df2b3cafa586e2c3ba357e1448be3ad789d24e.tar.gz gcc-79df2b3cafa586e2c3ba357e1448be3ad789d24e.tar.bz2 |
gccrs: name resolution 2.0: Add base for our context data structure
This commit adds a first simple `NameResolutionContext` data structure, which will
be used by all passes of the name resolution to store definitions and access
them. Namely, it contains a few instances of `ForeverStack`, for each
namespace we will be using.
gcc/rust/ChangeLog:
* Make-lang.in: Add new object file.
* resolve/rust-name-resolution-context.cc: New file.
* resolve/rust-name-resolution-context.h: New file.
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 198b13d..2ebe3b2 100644 --- a/gcc/rust/Make-lang.in +++ b/gcc/rust/Make-lang.in @@ -110,6 +110,7 @@ GRS_OBJS = \ rust/rust-ast-lower-type.o \ rust/rust-ast-lower-stmt.o \ rust/rust-rib.o \ + rust/rust-name-resolution-context.o \ rust/rust-early-name-resolver.o \ rust/rust-name-resolver.o \ rust/rust-ast-resolve.o \ |