mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-24 09:42:55 +00:00
Make SemIR::File access more terse. (#3331)
1. In general, `semantics_ir` -> `sem_ir`, to match the directory name. 2. For the list of `ValueStore`-related accessors on `SemIR::File`, add them to `check`'s `Context` object, shortening access.
This commit is contained in:
1 parent
b2cfd5a8a8
commit
e6634d240f
34 files changed
+433
-509
No files matched your search
@@ -27,7 +27,7 @@ auto NodeBlockStack::PeekOrAdd(int depth) -> SemIR::NodeBlockId {
|
||||
int index = size() - depth - 1;
|
||||
auto& slot = stack_[index];
|
||||
if (!slot.id.is_valid()) {
|
||||
slot.id = semantics_ir_->node_blocks().AddDefaultValue();
|
||||
slot.id = sem_ir_->node_blocks().AddDefaultValue();
|
||||
}
|
||||
return slot.id;
|
||||
}
|
||||
@@ -40,9 +40,9 @@ auto NodeBlockStack::Pop() -> SemIR::NodeBlockId {
|
||||
// Finalize the block.
|
||||
if (!back.content.empty() && back.id != SemIR::NodeBlockId::Unreachable) {
|
||||
if (back.id.is_valid()) {
|
||||
semantics_ir_->node_blocks().Set(back.id, back.content);
|
||||
sem_ir_->node_blocks().Set(back.id, back.content);
|
||||
} else {
|
||||
back.id = semantics_ir_->node_blocks().Add(back.content);
|
||||
back.id = sem_ir_->node_blocks().Add(back.content);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user