| ... | ... | @@ -2288,6 +2288,14 @@ pub fn update(comp: *Compilation) !void { |
| 2288 | 2288 | return; |
| 2289 | 2289 | } |
| 2290 | 2290 | |
| 2291 | if (comp.emit_docs) |doc_location| { |
| 2292 | if (comp.bin_file.options.module) |module| { |
| 2293 | var autodoc = Autodoc.init(module, doc_location); |
| 2294 | defer autodoc.deinit(); |
| 2295 | try autodoc.generateZirData(); |
| 2296 | } |
| 2297 | } |
| 2298 | |
| 2291 | 2299 | // Flush takes care of -femit-bin, but we still have -femit-llvm-ir, -femit-llvm-bc, and |
| 2292 | 2300 | // -femit-asm to handle, in the case of C objects. |
| 2293 | 2301 | comp.emitOthers(); |
| ... | ... | @@ -2867,14 +2875,6 @@ pub fn performAllTheWork( |
| 2867 | 2875 | } |
| 2868 | 2876 | } |
| 2869 | 2877 | |
| 2870 | | if (comp.emit_docs) |doc_location| { |
| 2871 | | if (comp.bin_file.options.module) |module| { |
| 2872 | | var autodoc = Autodoc.init(module, doc_location); |
| 2873 | | defer autodoc.deinit(); |
| 2874 | | try autodoc.generateZirData(); |
| 2875 | | } |
| 2876 | | } |
| 2877 | | |
| 2878 | 2878 | if (!use_stage1) { |
| 2879 | 2879 | const outdated_and_deleted_decls_frame = tracy.namedFrame("outdated_and_deleted_decls"); |
| 2880 | 2880 | defer outdated_and_deleted_decls_frame.end(); |