Commit f203334878

Andrew Kelley <andrew@ziglang.org>
2021-06-21 22:25:48
stage2: wire up AstGen to the progress bar
1 parent a51ff3a
Changed files (2)
src/Compilation.zig
@@ -2283,8 +2283,12 @@ fn workerAstGenFile(
 ) void {
     defer wg.finish();
 
+    var child_prog_node = prog_node.start(file.sub_file_path, 0);
+    child_prog_node.activate();
+    defer child_prog_node.end();
+
     const mod = comp.bin_file.options.module.?;
-    mod.astGenFile(file, prog_node) catch |err| switch (err) {
+    mod.astGenFile(file) catch |err| switch (err) {
         error.AnalysisFail => return,
         else => {
             file.status = .retryable_failure;
src/Module.zig
@@ -2211,8 +2211,7 @@ comptime {
     }
 }
 
-pub fn astGenFile(mod: *Module, file: *Scope.File, prog_node: *std.Progress.Node) !void {
-    _ = prog_node;
+pub fn astGenFile(mod: *Module, file: *Scope.File) !void {
     const tracy = trace(@src());
     defer tracy.end();