| ... | @@ -1353,12 +1353,6 @@ pub fn flushModule(self: *Elf, comp: *Compilation, prog_node: *std.Progress.Node | ... | @@ -1353,12 +1353,6 @@ pub fn flushModule(self: *Elf, comp: *Compilation, prog_node: *std.Progress.Node |
| 1353 | try self.updateSymtabSize(); | 1353 | try self.updateSymtabSize(); |
| 1354 | try self.writeSymtab(); | 1354 | try self.writeSymtab(); |
| 1355 | | 1355 | |
| 1356 | // Dump the state for easy debugging. | | |
| 1357 | // State can be dumped via `--debug-log link_state`. | | |
| 1358 | if (build_options.enable_logging) { | | |
| 1359 | state_log.debug("{}", .{self.dumpState()}); | | |
| 1360 | } | | |
| 1361 | | | |
| 1362 | if (self.dwarf) |*dw| { | 1356 | if (self.dwarf) |*dw| { |
| 1363 | if (self.debug_abbrev_section_dirty) { | 1357 | if (self.debug_abbrev_section_dirty) { |
| 1364 | try dw.writeDbgAbbrev(); | 1358 | try dw.writeDbgAbbrev(); |
| ... | @@ -1545,6 +1539,12 @@ pub fn flushModule(self: *Elf, comp: *Compilation, prog_node: *std.Progress.Node | ... | @@ -1545,6 +1539,12 @@ pub fn flushModule(self: *Elf, comp: *Compilation, prog_node: *std.Progress.Node |
| 1545 | try self.writeElfHeader(); | 1539 | try self.writeElfHeader(); |
| 1546 | } | 1540 | } |
| 1547 | | 1541 | |
| | 1542 | // Dump the state for easy debugging. |
| | 1543 | // State can be dumped via `--debug-log link_state`. |
| | 1544 | if (build_options.enable_logging) { |
| | 1545 | state_log.debug("{}", .{self.dumpState()}); |
| | 1546 | } |
| | 1547 | |
| 1548 | // The point of flush() is to commit changes, so in theory, nothing should | 1548 | // The point of flush() is to commit changes, so in theory, nothing should |
| 1549 | // be dirty after this. However, it is possible for some things to remain | 1549 | // be dirty after this. However, it is possible for some things to remain |
| 1550 | // dirty because they fail to be written in the event of compile errors, | 1550 | // dirty because they fail to be written in the event of compile errors, |