authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2021-01-18 20:26:06+01:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2021-01-18 22:26:23+01:00
loga2ebe3c82c89084a3672593cb34f259fca5a5e30
treeb98fa57087156c610c9769ce29cea0c1ae62e300
parente32131cfae60859340ea43893fa1d0f70701ec31

macho: add missing DWARF line no update in codegen


1 files changed, 4 insertions(+), 2 deletions(-)

src/Module.zig+4-2
......@@ -1617,8 +1617,10 @@ pub fn analyzeContainer(self: *Module, container_scope: *Scope.Container) !void
16171617 // in `Decl` to notice that the line number did not change.
16181618 self.comp.work_queue.writeItemAssumeCapacity(.{ .update_line_number = decl });
16191619 },
1620 .macho => {
1621 // TODO Implement for MachO
1620 .macho => if (decl.fn_link.macho.len != 0) {
1621 // TODO Look into detecting when this would be unnecessary by storing enough state
1622 // in `Decl` to notice that the line number did not change.
1623 self.comp.work_queue.writeItemAssumeCapacity(.{ .update_line_number = decl });
16221624 },
16231625 .c, .wasm => {},
16241626 }