diff options
| author | Michael Dusan <michael.dusan@gmail.com> | 2019-09-04 16:04:43 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-09-05 13:06:10 -0400 |
| commit | fe153ad2a435e26f9904f05858232305bdffd3ac (patch) | |
| tree | aee8502f0627b5fd5027a180491487bf1fb56b5b /src/ir.cpp | |
| parent | fabf45f5fc0a1827913be5675130db5db514c136 (diff) | |
| download | zig-fe153ad2a435e26f9904f05858232305bdffd3ac.tar.gz zig-fe153ad2a435e26f9904f05858232305bdffd3ac.zip | |
stage1 enhance IR print
- print fn name in pass1
- replace scalar with enum IrPass for clarity
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<IrExecutable>(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"); } |
