diff options
| author | Michael Dusan <michael.dusan@gmail.com> | 2019-08-31 12:30:26 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-08-31 22:42:58 -0400 |
| commit | 1f99899408367a16c13806369f94645c2001e68b (patch) | |
| tree | 0135bed7eda0395f258c3619d906306a42aaf34d /src/ir.cpp | |
| parent | 5c3a9a1a3eef82ffad17bc295da05ecccd9006a5 (diff) | |
| download | zig-1f99899408367a16c13806369f94645c2001e68b.tar.gz zig-1f99899408367a16c13806369f94645c2001e68b.zip | |
stage1 enhance IR print
- pass2 now prints missing instructions in a trailing fashion
- instruction struct name added to print as column 2
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 b8a81ba5c9..393b5c52e2 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -10867,7 +10867,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); + ir_print(codegen, stderr, ir_executable, 2, 1); fprintf(stderr, "}\n"); } IrExecutable *analyzed_executable = allocate<IrExecutable>(1); @@ -10888,7 +10888,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); + ir_print(codegen, stderr, analyzed_executable, 2, 2); fprintf(stderr, "}\n"); } |
