| author | |
| committer | |
| log | f20929bd8b6cd2b0af5edade9c27a5e002480d65 |
| tree | 1b067576ef8ce832ce56fca6ff3f781c6a775782 |
| parent | 63cbec1a96740c325115e4ff955437ea0198c9fe |
2 files changed, 7 insertions(+), 1 deletions(-)
src/Compilation.zig+2| ... | ... | @@ -2771,6 +2771,8 @@ fn processOneJob(comp: *Compilation, job: Job, main_progress_node: *std.Progress |
| 2771 | 2771 | sema_frame.end(); |
| 2772 | 2772 | sema_frame_ended = true; |
| 2773 | 2773 | |
| 2774 | if (comp.bin_file.options.emit == null) return; | |
| 2775 | ||
| 2774 | 2776 | const liveness_frame = tracy.namedFrame("liveness"); |
| 2775 | 2777 | var liveness_frame_ended = false; |
| 2776 | 2778 | errdefer if (!liveness_frame_ended) liveness_frame.end(); |
src/Module.zig+5-1| ... | ... | @@ -5266,7 +5266,11 @@ pub fn populateTestFunctions(mod: *Module) !void { |
| 5266 | 5266 | } |
| 5267 | 5267 | |
| 5268 | 5268 | pub fn linkerUpdateDecl(mod: *Module, decl: *Decl) !void { |
| 5269 | mod.comp.bin_file.updateDecl(mod, decl) catch |err| switch (err) { | |
| 5269 | const comp = mod.comp; | |
| 5270 | ||
| 5271 | if (comp.bin_file.options.emit == null) return; | |
| 5272 | ||
| 5273 | comp.bin_file.updateDecl(mod, decl) catch |err| switch (err) { | |
| 5270 | 5274 | error.OutOfMemory => return error.OutOfMemory, |
| 5271 | 5275 | error.AnalysisFail => { |
| 5272 | 5276 | decl.analysis = .codegen_failure; |