mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-27 22:02:33 +01:00
Rename SemIR::Node to SemIR::Inst (#3355)
And generally replace "node" by "inst" in the code and "instruction" in comments. --------- Co-authored-by: Chandler Carruth <chandlerc@gmail.com>
This commit is contained in:
co-authored by
Chandler Carruth
parent
35c2142392
commit
7edfd8e02a
@@ -5,7 +5,7 @@
|
||||
#include "toolchain/check/node_stack.h"
|
||||
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "toolchain/sem_ir/node.h"
|
||||
#include "toolchain/sem_ir/inst.h"
|
||||
|
||||
namespace Carbon::Check {
|
||||
|
||||
@@ -17,8 +17,8 @@ auto NodeStack::PrintForStackDump(llvm::raw_ostream& output) const -> void {
|
||||
if (parse_node_kind == Parse::NodeKind::PatternBinding) {
|
||||
output << " -> " << entry.name_id;
|
||||
} else {
|
||||
if (entry.node_id.is_valid()) {
|
||||
output << " -> " << entry.node_id;
|
||||
if (entry.inst_id.is_valid()) {
|
||||
output << " -> " << entry.inst_id;
|
||||
}
|
||||
}
|
||||
output << "\n";
|
||||
|
||||
Reference in New Issue
Block a user