aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2023-01-26 14:28:44 +0100
committerJakub Konka <kubkon@jakubkonka.com>2023-01-26 14:29:14 +0100
commitcc1d7a0e315ba63b0d8c0cd647b4c7e92a571bf2 (patch)
tree281b181f5e1bc127ed41e3f7c9e958a57df4cf68 /src/Module.zig
parente1b9800ffa74a637e2b0a6356249c2c37228ec01 (diff)
downloadzig-cc1d7a0e315ba63b0d8c0cd647b4c7e92a571bf2.tar.gz
zig-cc1d7a0e315ba63b0d8c0cd647b4c7e92a571bf2.zip
coff: migrate to new non-allocateDeclIndexes API
Diffstat (limited to 'src/Module.zig')
-rw-r--r--src/Module.zig7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Module.zig b/src/Module.zig
index 4e1f65aff4..360dd4d1ec 100644
--- a/src/Module.zig
+++ b/src/Module.zig
@@ -5324,7 +5324,12 @@ pub fn deleteUnusedDecl(mod: *Module, decl_index: Decl.Index) void {
// Until then, we did call `allocateDeclIndexes` on this anonymous Decl and so we
// must call `freeDecl` in the linker backend now.
switch (mod.comp.bin_file.tag) {
- .elf, .macho, .c => {}, // this linker backend has already migrated to the new API
+ .coff,
+ .elf,
+ .macho,
+ .c,
+ => {}, // this linker backend has already migrated to the new API
+
else => if (decl.has_tv) {
if (decl.ty.isFnOrHasRuntimeBits()) {
mod.comp.bin_file.freeDecl(decl_index);