aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-02-01 12:49:51 -0800
committerGitHub <noreply@github.com>2021-02-01 12:49:51 -0800
commit102d9542203e52839156cb61efdfca8403a379a9 (patch)
tree72daf0d9a1ac3680f2f1fbc6447a120dde9b52ee /src/Module.zig
parent06b29c854656a1f9320ee16024b1c3a6b78180a5 (diff)
parent1055344673a87af39f2288bae069ec9403e6086d (diff)
downloadzig-102d9542203e52839156cb61efdfca8403a379a9.tar.gz
zig-102d9542203e52839156cb61efdfca8403a379a9.zip
Merge pull request #7827 from Snektron/spirv-setup
Stage 2: SPIR-V setup
Diffstat (limited to 'src/Module.zig')
-rw-r--r--src/Module.zig5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Module.zig b/src/Module.zig
index 46c3d513f1..8de03b54ab 100644
--- a/src/Module.zig
+++ b/src/Module.zig
@@ -1673,7 +1673,7 @@ 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 });
},
- .c, .wasm => {},
+ .c, .wasm, .spirv => {},
}
}
} else {
@@ -1906,6 +1906,7 @@ fn allocateNewDecl(
.macho => .{ .macho = link.File.MachO.TextBlock.empty },
.c => .{ .c = link.File.C.DeclBlock.empty },
.wasm => .{ .wasm = {} },
+ .spirv => .{ .spirv = {} },
},
.fn_link = switch (mod.comp.bin_file.tag) {
.coff => .{ .coff = {} },
@@ -1913,6 +1914,7 @@ fn allocateNewDecl(
.macho => .{ .macho = link.File.MachO.SrcFn.empty },
.c => .{ .c = link.File.C.FnBlock.empty },
.wasm => .{ .wasm = null },
+ .spirv => .{ .spirv = .{} },
},
.generation = 0,
.is_pub = false,
@@ -2010,6 +2012,7 @@ pub fn analyzeExport(
.macho => .{ .macho = link.File.MachO.Export{} },
.c => .{ .c = {} },
.wasm => .{ .wasm = {} },
+ .spirv => .{ .spirv = {} },
},
.owner_decl = owner_decl,
.exported_decl = exported_decl,