mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-20 06:16:42 +00:00
Add value store to be shared across compile stages. (#3311)
This updates lexing to use the data. I'll do checking separately, just to split changes. Note the ValueStore structure is also set up such that SemIR::File can use it for other fields. --------- Co-authored-by: Richard Smith <richard@metafoo.co.uk>
This commit is contained in:
1 parent
629c63c7d1
commit
d13f76e001
26 files changed
+389
-227
No files matched your search
@@ -97,7 +97,7 @@ static auto BuildFunctionDeclaration(Context& context, bool is_definition)
|
||||
{.name_id = name_context.state ==
|
||||
DeclarationNameStack::NameContext::State::Unresolved
|
||||
? name_context.unresolved_name_id
|
||||
: SemIR::StringId(SemIR::StringId::InvalidIndex),
|
||||
: StringId::Invalid,
|
||||
.param_refs_id = param_refs_id,
|
||||
.return_type_id = return_type_id,
|
||||
.return_slot_id = return_slot_id});
|
||||
|
||||
Reference in new issue
Block a user