From 79df2b3cafa586e2c3ba357e1448be3ad789d24e Mon Sep 17 00:00:00 2001 From: Arthur Cohen Date: Fri, 23 Jun 2023 16:17:51 +0200 Subject: 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. --- gcc/rust/Make-lang.in | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/rust/Make-lang.in') 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 \ -- cgit v1.1