diff options
| author | gingerBill <ginger.bill.22@gmail.com> | 2016-07-30 00:09:30 +0100 |
|---|---|---|
| committer | gingerBill <ginger.bill.22@gmail.com> | 2016-07-30 00:17:13 +0100 |
| commit | 776dc0e8f1aa506ae0096c78ff10565e56c175e7 (patch) | |
| tree | 946508a869196a3bf1d005e0ddffd182a1786a1d /src/printer.cpp | |
| parent | 32ab8fcf99df786c264ca566799b022c66cca34b (diff) | |
Restart LLVM IR SSA generation
This is the third go and I'm going for it!
Diffstat (limited to 'src/printer.cpp')
| -rw-r--r-- | src/printer.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/printer.cpp b/src/printer.cpp index f0878b056..94233e97e 100644 --- a/src/printer.cpp +++ b/src/printer.cpp @@ -150,7 +150,7 @@ void print_ast(AstNode *node, isize indent) { gb_printf("(decl:proc,mutable)\n"); else if (node->procedure_declaration.kind == Declaration_Immutable) gb_printf("(decl:proc,immutable)\n"); - print_ast(node->procedure_declaration.procedure_type, indent+1); + print_ast(node->procedure_declaration.type, indent+1); print_ast(node->procedure_declaration.body, indent+1); print_ast(node->procedure_declaration.tag_list, indent+1); break; @@ -162,6 +162,14 @@ void print_ast(AstNode *node, isize indent) { print_ast(node->type_declaration.type_expression, indent+1); break; + case AstNode_AliasDeclaration: + print_indent(indent); + gb_printf("(alias)\n"); + print_ast(node->alias_declaration.name, indent+1); + print_ast(node->alias_declaration.type_expression, indent+1); + break; + + case AstNode_ProcedureType: print_indent(indent); gb_printf("(type:proc)(%td -> %td)\n", node->procedure_type.param_count, node->procedure_type.result_count); |