aboutsummaryrefslogtreecommitdiff
path: root/src/link.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/link.zig')
-rw-r--r--src/link.zig12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/link.zig b/src/link.zig
index d64c09d199..9be5b9ca3a 100644
--- a/src/link.zig
+++ b/src/link.zig
@@ -615,12 +615,16 @@ pub const File = struct {
return;
}
switch (base.tag) {
- .coff => return @fieldParentPtr(Coff, "base", base).allocateDeclIndexes(decl_index),
- .elf => {}, // no-op
- .macho => {}, // no-op
.wasm => return @fieldParentPtr(Wasm, "base", base).allocateDeclIndexes(decl_index),
.plan9 => return @fieldParentPtr(Plan9, "base", base).allocateDeclIndexes(decl_index),
- .c, .spirv, .nvptx => {},
+
+ .coff,
+ .elf,
+ .macho,
+ .c,
+ .spirv,
+ .nvptx,
+ => {},
}
}