diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-05-03 20:05:29 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-05-03 20:05:29 -0700 |
| commit | 2ae72c6f091716a4c1a30928dc1a49c9a1ed312a (patch) | |
| tree | 5dffbaf4d43bab0e2a2835fa0b978cc4b738ac36 /src/Module.zig | |
| parent | 69d18ad7f05f093b06388877aa4a7b3d6f2664a6 (diff) | |
| download | zig-2ae72c6f091716a4c1a30928dc1a49c9a1ed312a.tar.gz zig-2ae72c6f091716a4c1a30928dc1a49c9a1ed312a.zip | |
Sema: implement ExportOptions support in `@export`
Also fix switch blocks not emitting their AIR code.
Diffstat (limited to 'src/Module.zig')
| -rw-r--r-- | src/Module.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Module.zig b/src/Module.zig index 16a6ff6acf..6d6443076c 100644 --- a/src/Module.zig +++ b/src/Module.zig @@ -3273,6 +3273,10 @@ pub fn analyzeExport( const owner_decl = scope.ownerDecl().?; + log.debug("exporting Decl '{s}' as symbol '{s}' from Decl '{s}'", .{ + exported_decl.name, borrowed_symbol_name, owner_decl.name, + }); + new_export.* = .{ .options = .{ .name = symbol_name }, .src = src, |
