mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 09:34:42 +01:00
Rename the ImportRefs block to Imports (#5618)
I've been mulling the name of this, changing it and updating comments to try and better reflect the current semantic. "Imports" reflects how we're currently printing this in SemIR.
This commit is contained in:
@@ -53,7 +53,7 @@ Formatter::Formatter(const File* sem_ir,
|
||||
// Create empty placeholder chunks for instructions that we output lazily.
|
||||
for (auto inst_id : llvm::concat<const InstId>(
|
||||
sem_ir_->constants().array_ref(),
|
||||
sem_ir_->inst_blocks().Get(InstBlockId::ImportRefs))) {
|
||||
sem_ir_->inst_blocks().Get(InstBlockId::Imports))) {
|
||||
tentative_inst_chunks_[inst_id.index] = AddChunkNoFlush(false);
|
||||
}
|
||||
|
||||
@@ -67,8 +67,8 @@ auto Formatter::Format() -> void {
|
||||
FormatTopLevelScopeIfUsed(InstNamer::ScopeId::Constants,
|
||||
sem_ir_->constants().array_ref(),
|
||||
/*use_tentative_output_scopes=*/true);
|
||||
FormatTopLevelScopeIfUsed(InstNamer::ScopeId::ImportRefs,
|
||||
sem_ir_->inst_blocks().Get(InstBlockId::ImportRefs),
|
||||
FormatTopLevelScopeIfUsed(InstNamer::ScopeId::Imports,
|
||||
sem_ir_->inst_blocks().Get(InstBlockId::Imports),
|
||||
/*use_tentative_output_scopes=*/true);
|
||||
FormatTopLevelScopeIfUsed(
|
||||
InstNamer::ScopeId::File,
|
||||
|
||||
Reference in New Issue
Block a user