diff options
| author | Noam Preil <noam@pixelhero.dev> | 2020-12-30 05:22:50 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-01-05 17:41:14 -0700 |
| commit | 9360e5887ce0bf0ce204eb49f0d0b253348ef557 (patch) | |
| tree | 30d5775253ec1f8a913c8c87aa952534b6bc19ea /src/link.zig | |
| parent | 6c4924408b1957d493568271a0158b1190574dd0 (diff) | |
| download | zig-9360e5887ce0bf0ce204eb49f0d0b253348ef557.tar.gz zig-9360e5887ce0bf0ce204eb49f0d0b253348ef557.zip | |
integrate CBE with Compilation.update pipeline (closes #7589)
* CBE buffers are only valid during a flush()
* the file is reopened and truncated during each flush()
* CBE now explicitly ignores updateDecl and deleteDecl
* CBE updateDecl is gone
* test case is enabled
Diffstat (limited to 'src/link.zig')
| -rw-r--r-- | src/link.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/link.zig b/src/link.zig index 3dbfb3b922..488f8bf69b 100644 --- a/src/link.zig +++ b/src/link.zig @@ -291,7 +291,7 @@ pub const File = struct { .coff => return @fieldParentPtr(Coff, "base", base).updateDecl(module, decl), .elf => return @fieldParentPtr(Elf, "base", base).updateDecl(module, decl), .macho => return @fieldParentPtr(MachO, "base", base).updateDecl(module, decl), - .c => return @fieldParentPtr(C, "base", base).updateDecl(module, decl), + .c => {}, .wasm => return @fieldParentPtr(Wasm, "base", base).updateDecl(module, decl), } } @@ -412,7 +412,7 @@ pub const File = struct { .coff => @fieldParentPtr(Coff, "base", base).freeDecl(decl), .elf => @fieldParentPtr(Elf, "base", base).freeDecl(decl), .macho => @fieldParentPtr(MachO, "base", base).freeDecl(decl), - .c => unreachable, + .c => {}, .wasm => @fieldParentPtr(Wasm, "base", base).freeDecl(decl), } } |
