aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-03-19 19:33:11 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-03-19 19:33:11 -0700
commit937c43ddf1297f355cc535adf3ec08f9f741b6c8 (patch)
tree99005ced8d66d9816048b79b0028537d694b1c45 /src/Module.zig
parent0357cd86537f708d915976398a38837feb1a5528 (diff)
downloadzig-937c43ddf1297f355cc535adf3ec08f9f741b6c8.tar.gz
zig-937c43ddf1297f355cc535adf3ec08f9f741b6c8.zip
stage2: first pass at repairing ZIR printing
Diffstat (limited to 'src/Module.zig')
-rw-r--r--src/Module.zig10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Module.zig b/src/Module.zig
index 53e1850c0d..050b634180 100644
--- a/src/Module.zig
+++ b/src/Module.zig
@@ -1826,7 +1826,7 @@ fn astgenAndSemaDecl(mod: *Module, decl: *Decl) !bool {
const code = try gen_scope.finish();
if (std.builtin.mode == .Debug and mod.comp.verbose_ir) {
- code.dump(mod.gpa, "comptime_block", decl.name) catch {};
+ code.dump(mod.gpa, "comptime_block", decl.name, 0) catch {};
}
break :blk code;
};
@@ -2047,7 +2047,7 @@ fn astgenAndSemaFn(
const fn_type_code = try fn_type_scope.finish();
if (std.builtin.mode == .Debug and mod.comp.verbose_ir) {
- fn_type_code.dump(mod.gpa, "fn_type", decl.name) catch {};
+ fn_type_code.dump(mod.gpa, "fn_type", decl.name, 0) catch {};
}
var fn_type_sema: Sema = .{
@@ -2170,7 +2170,7 @@ fn astgenAndSemaFn(
const code = try gen_scope.finish();
if (std.builtin.mode == .Debug and mod.comp.verbose_ir) {
- code.dump(mod.gpa, "fn_body", decl.name) catch {};
+ code.dump(mod.gpa, "fn_body", decl.name, param_count) catch {};
}
break :blk code;
@@ -2347,7 +2347,7 @@ fn astgenAndSemaVarDecl(
);
const code = try gen_scope.finish();
if (std.builtin.mode == .Debug and mod.comp.verbose_ir) {
- code.dump(mod.gpa, "var_init", decl.name) catch {};
+ code.dump(mod.gpa, "var_init", decl.name, 0) catch {};
}
var sema: Sema = .{
@@ -2409,7 +2409,7 @@ fn astgenAndSemaVarDecl(
const var_type = try astgen.typeExpr(mod, &type_scope.base, var_decl.ast.type_node);
const code = try type_scope.finish();
if (std.builtin.mode == .Debug and mod.comp.verbose_ir) {
- code.dump(mod.gpa, "var_type", decl.name) catch {};
+ code.dump(mod.gpa, "var_type", decl.name, 0) catch {};
}
var sema: Sema = .{