diff options
| author | gingerBill <bill@gingerbill.org> | 2018-06-17 10:58:59 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-06-17 10:58:59 +0100 |
| commit | c2ca24a486319c0e8b9a5cd0c377a9d66eb036d3 (patch) | |
| tree | f0f34d5c36ddd1535088fe57465da88a07435ee4 /src/ir_print.cpp | |
| parent | e5aff6fd6d88c58b9ac4d303a97c5990f6f622b0 (diff) | |
Big renaming: `AstNode` to `Ast`
Diffstat (limited to 'src/ir_print.cpp')
| -rw-r--r-- | src/ir_print.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp index ce5fcec9e..a1982479d 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -709,7 +709,7 @@ void ir_print_exact_value(irFileBuffer *f, irModule *m, ExactValue value, Type * bool *visited = gb_alloc_array(m->tmp_allocator, bool, value_count); if (cl->elems.count > 0) { - if (cl->elems[0]->kind == AstNode_FieldValue) { + if (cl->elems[0]->kind == Ast_FieldValue) { isize elem_count = cl->elems.count; for (isize i = 0; i < elem_count; i++) { ast_node(fv, FieldValue, cl->elems[i]); @@ -765,13 +765,13 @@ void ir_print_exact_value(irFileBuffer *f, irModule *m, ExactValue value, Type * } case ExactValue_Procedure: { irValue **found = nullptr; - AstNode *expr = value.value_procedure; + Ast *expr = value.value_procedure; GB_ASSERT(expr != nullptr); - if (expr->kind == AstNode_ProcLit) { + if (expr->kind == Ast_ProcLit) { found = map_get(&m->anonymous_proc_lits, hash_pointer(expr)); } else { - GB_ASSERT(expr->kind == AstNode_Ident); + GB_ASSERT(expr->kind == Ast_Ident); Entity *e = entity_of_ident(expr); GB_ASSERT(e != nullptr); found = map_get(&m->values, hash_entity(e)); |