diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-07-22 23:27:58 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-07-22 23:28:53 -0400 |
| commit | 93e78ee72259b98840f63db0ad87fdddb071e384 (patch) | |
| tree | b8d0481cf68d4d87fc12be637597e591597d9fe2 /src-self-hosted/decl.zig | |
| parent | 58c5f94a99a78346286065bbf390e4c30be1b707 (diff) | |
| download | zig-93e78ee72259b98840f63db0ad87fdddb071e384.tar.gz zig-93e78ee72259b98840f63db0ad87fdddb071e384.zip | |
self-hosted can compile libc hello world
Diffstat (limited to 'src-self-hosted/decl.zig')
| -rw-r--r-- | src-self-hosted/decl.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src-self-hosted/decl.zig b/src-self-hosted/decl.zig index bb065640c2..6e80243038 100644 --- a/src-self-hosted/decl.zig +++ b/src-self-hosted/decl.zig @@ -15,7 +15,6 @@ pub const Decl = struct { name: []const u8, visib: Visib, resolution: event.Future(Compilation.BuildError!void), - resolution_in_progress: u8, parent_scope: *Scope, pub const Table = std.HashMap([]const u8, *Decl, mem.hash_slice_u8, mem.eql_slice_u8); @@ -63,12 +62,13 @@ pub const Decl = struct { pub const Fn = struct { base: Decl, value: Val, - fn_proto: *const ast.Node.FnProto, + fn_proto: *ast.Node.FnProto, // TODO https://github.com/ziglang/zig/issues/683 and then make this anonymous - pub const Val = union { + pub const Val = union(enum) { Unresolved: void, - Ok: *Value.Fn, + Fn: *Value.Fn, + FnProto: *Value.FnProto, }; pub fn externLibName(self: Fn, tree: *ast.Tree) ?[]const u8 { |
