aboutsummaryrefslogtreecommitdiff
path: root/src/link.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-10-22 17:52:12 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-10-22 17:52:12 -0400
commitf65b1d46804bce716f16465b60c6daa2921e4519 (patch)
treef22e5fac294a4f5f638f2005948c05fb1846e5b8 /src/link.cpp
parentdc080573d160a444e2e7c1fb88fac27c8060269f (diff)
downloadzig-f65b1d46804bce716f16465b60c6daa2921e4519.tar.gz
zig-f65b1d46804bce716f16465b60c6daa2921e4519.zip
integrate stage1 progress display with semantic analysis
Diffstat (limited to 'src/link.cpp')
-rw-r--r--src/link.cpp17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/link.cpp b/src/link.cpp
index c6286722a6..664e83e8b1 100644
--- a/src/link.cpp
+++ b/src/link.cpp
@@ -2630,8 +2630,9 @@ void codegen_link(CodeGen *g) {
{
const char *progress_name = "Build Dependencies";
- lj.build_dep_prog_node = stage2_progress_start(g->progress_node,
- progress_name, strlen(progress_name), 0);
+ codegen_switch_sub_prog_node(g, stage2_progress_start(g->main_progress_node,
+ progress_name, strlen(progress_name), 0));
+ lj.build_dep_prog_node = g->sub_progress_node;
}
@@ -2661,10 +2662,9 @@ void codegen_link(CodeGen *g) {
ZigLLVM_OSType os_type = get_llvm_os_type(g->zig_target->os);
codegen_add_time_event(g, "LLVM Link");
{
- const char *progress_name = "linking";
- Stage2ProgressNode *child_progress_node = stage2_progress_start(g->progress_node,
- progress_name, strlen(progress_name), 0);
- (void)child_progress_node;
+ const char *progress_name = "Link";
+ codegen_switch_sub_prog_node(g, stage2_progress_start(g->main_progress_node,
+ progress_name, strlen(progress_name), 0));
}
if (g->verbose_link) {
fprintf(stderr, "ar rcs %s", buf_ptr(&g->output_file_path));
@@ -2696,6 +2696,11 @@ void codegen_link(CodeGen *g) {
Buf diag = BUF_INIT;
codegen_add_time_event(g, "LLVM Link");
+ {
+ const char *progress_name = "Link";
+ codegen_switch_sub_prog_node(g, stage2_progress_start(g->main_progress_node,
+ progress_name, strlen(progress_name), 0));
+ }
if (g->system_linker_hack && g->zig_target->os == OsMacOSX) {
Termination term;
ZigList<const char *> args = {};