diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-05-06 17:20:45 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-05-06 17:20:45 -0700 |
| commit | cdea22f5d7f1ef7a44cf871eeafab3383495ab6c (patch) | |
| tree | c71de1d6255bab7673b6f44337429c4417f69423 /src/Compilation.zig | |
| parent | 3791cd6781ce92478b8a17c8d56c5cf66d4ecfb0 (diff) | |
| download | zig-cdea22f5d7f1ef7a44cf871eeafab3383495ab6c.tar.gz zig-cdea22f5d7f1ef7a44cf871eeafab3383495ab6c.zip | |
stage2: wire up outdated/deleted decl detection
we're back to incremental compilation working smoothly
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index debad00dae..9adc9bdee7 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -1878,6 +1878,11 @@ pub fn performAllTheWork(self: *Compilation) error{ TimerUnsupported, OutOfMemor } } + // Iterate over all the files and look for outdated and deleted declarations. + if (self.bin_file.options.module) |mod| { + try mod.processOutdatedAndDeletedDecls(); + } + while (self.work_queue.readItem()) |work_item| switch (work_item) { .codegen_decl => |decl| switch (decl.analysis) { .unreferenced => unreachable, |
