| ... | ... | @@ -87,6 +87,7 @@ clang_preprocessor_mode: ClangPreprocessorMode, |
| 87 | 87 | /// Whether to print clang argvs to stdout. |
| 88 | 88 | verbose_cc: bool, |
| 89 | 89 | verbose_air: bool, |
| 90 | verbose_intern_pool: bool, |
| 90 | 91 | verbose_llvm_ir: ?[]const u8, |
| 91 | 92 | verbose_llvm_bc: ?[]const u8, |
| 92 | 93 | verbose_cimport: bool, |
| ... | ... | @@ -593,6 +594,7 @@ pub const InitOptions = struct { |
| 593 | 594 | verbose_cc: bool = false, |
| 594 | 595 | verbose_link: bool = false, |
| 595 | 596 | verbose_air: bool = false, |
| 597 | verbose_intern_pool: bool = false, |
| 596 | 598 | verbose_llvm_ir: ?[]const u8 = null, |
| 597 | 599 | verbose_llvm_bc: ?[]const u8 = null, |
| 598 | 600 | verbose_cimport: bool = false, |
| ... | ... | @@ -1574,6 +1576,7 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { |
| 1574 | 1576 | .clang_preprocessor_mode = options.clang_preprocessor_mode, |
| 1575 | 1577 | .verbose_cc = options.verbose_cc, |
| 1576 | 1578 | .verbose_air = options.verbose_air, |
| 1579 | .verbose_intern_pool = options.verbose_intern_pool, |
| 1577 | 1580 | .verbose_llvm_ir = options.verbose_llvm_ir, |
| 1578 | 1581 | .verbose_llvm_bc = options.verbose_llvm_bc, |
| 1579 | 1582 | .verbose_cimport = options.verbose_cimport, |
| ... | ... | @@ -2026,10 +2029,12 @@ pub fn update(comp: *Compilation, main_progress_node: *std.Progress.Node) !void |
| 2026 | 2029 | try comp.performAllTheWork(main_progress_node); |
| 2027 | 2030 | |
| 2028 | 2031 | if (comp.bin_file.options.module) |module| { |
| 2029 | | std.debug.print("intern pool stats for '{s}':\n", .{ |
| 2030 | | comp.bin_file.options.root_name, |
| 2031 | | }); |
| 2032 | | module.intern_pool.dump(); |
| 2032 | if (builtin.mode == .Debug and comp.verbose_intern_pool) { |
| 2033 | std.debug.print("intern pool stats for '{s}':\n", .{ |
| 2034 | comp.bin_file.options.root_name, |
| 2035 | }); |
| 2036 | module.intern_pool.dump(); |
| 2037 | } |
| 2033 | 2038 | |
| 2034 | 2039 | if (comp.bin_file.options.is_test and comp.totalErrorCount() == 0) { |
| 2035 | 2040 | // The `test_functions` decl has been intentionally postponed until now, |
| ... | ... | @@ -5422,6 +5427,7 @@ fn buildOutputFromZig( |
| 5422 | 5427 | .verbose_cc = comp.verbose_cc, |
| 5423 | 5428 | .verbose_link = comp.bin_file.options.verbose_link, |
| 5424 | 5429 | .verbose_air = comp.verbose_air, |
| 5430 | .verbose_intern_pool = comp.verbose_intern_pool, |
| 5425 | 5431 | .verbose_llvm_ir = comp.verbose_llvm_ir, |
| 5426 | 5432 | .verbose_llvm_bc = comp.verbose_llvm_bc, |
| 5427 | 5433 | .verbose_cimport = comp.verbose_cimport, |
| ... | ... | @@ -5500,6 +5506,7 @@ pub fn build_crt_file( |
| 5500 | 5506 | .verbose_cc = comp.verbose_cc, |
| 5501 | 5507 | .verbose_link = comp.bin_file.options.verbose_link, |
| 5502 | 5508 | .verbose_air = comp.verbose_air, |
| 5509 | .verbose_intern_pool = comp.verbose_intern_pool, |
| 5503 | 5510 | .verbose_llvm_ir = comp.verbose_llvm_ir, |
| 5504 | 5511 | .verbose_llvm_bc = comp.verbose_llvm_bc, |
| 5505 | 5512 | .verbose_cimport = comp.verbose_cimport, |