stage2: wire up AstGen to the progress bar

This commit is contained in:
Andrew Kelley 2021-06-21 13:25:48 -07:00
parent a51ff3a903
commit f203334878
2 changed files with 6 additions and 3 deletions

View File

@ -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;

View File

@ -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();