From fe153ad2a435e26f9904f05858232305bdffd3ac Mon Sep 17 00:00:00 2001 From: Michael Dusan Date: Wed, 4 Sep 2019 16:04:43 -0400 Subject: stage1 enhance IR print - print fn name in pass1 - replace scalar with enum IrPass for clarity --- src/ir.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ir.cpp') diff --git a/src/ir.cpp b/src/ir.cpp index bf0b1188b1..054fbf0073 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -10892,7 +10892,7 @@ ConstExprValue *ir_eval_const_value(CodeGen *codegen, Scope *scope, AstNode *nod fprintf(stderr, "\nSource: "); ast_render(stderr, node, 4); fprintf(stderr, "\n{ // (IR)\n"); - ir_print(codegen, stderr, ir_executable, 2, 1); + ir_print(codegen, stderr, ir_executable, 2, IrPassSrc); fprintf(stderr, "}\n"); } IrExecutable *analyzed_executable = allocate(1); @@ -10913,7 +10913,7 @@ ConstExprValue *ir_eval_const_value(CodeGen *codegen, Scope *scope, AstNode *nod if (codegen->verbose_ir) { fprintf(stderr, "{ // (analyzed)\n"); - ir_print(codegen, stderr, analyzed_executable, 2, 2); + ir_print(codegen, stderr, analyzed_executable, 2, IrPassGen); fprintf(stderr, "}\n"); } -- cgit v1.2.3