aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2021-01-19 08:58:51 +0100
committerGitHub <noreply@github.com>2021-01-19 08:58:51 +0100
commitd5b0a963d1bf3399e3d8b63b03ea61f7d771adbd (patch)
tree4ae07939bc49274fb769cf91416ee002c8b66ebf /src/Module.zig
parent30a824cb9e148adb0799a0a81721160c0d474b50 (diff)
parenta2ebe3c82c89084a3672593cb34f259fca5a5e30 (diff)
downloadzig-d5b0a963d1bf3399e3d8b63b03ea61f7d771adbd.tar.gz
zig-d5b0a963d1bf3399e3d8b63b03ea61f7d771adbd.zip
Merge pull request #7818 from kubkon/macho-more-cleanup
Macho more cleanup
Diffstat (limited to 'src/Module.zig')
-rw-r--r--src/Module.zig6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Module.zig b/src/Module.zig
index 7a6dc12967..fa9722814e 100644
--- a/src/Module.zig
+++ b/src/Module.zig
@@ -1617,8 +1617,10 @@ pub fn analyzeContainer(self: *Module, container_scope: *Scope.Container) !void
// in `Decl` to notice that the line number did not change.
self.comp.work_queue.writeItemAssumeCapacity(.{ .update_line_number = decl });
},
- .macho => {
- // TODO Implement for MachO
+ .macho => if (decl.fn_link.macho.len != 0) {
+ // TODO Look into detecting when this would be unnecessary by storing enough state
+ // in `Decl` to notice that the line number did not change.
+ self.comp.work_queue.writeItemAssumeCapacity(.{ .update_line_number = decl });
},
.c, .wasm => {},
}