mirror of
https://github.com/ziglang/zig.git
synced 2024-12-01 09:32:31 +00:00
6fece14cfb
Now the self-hosted compiler re-uses the same C++ code for interfacing with LLVM as the C++ code. It also links against the same LLD library files.
17 lines
241 B
Zig
17 lines
241 B
Zig
pub const Scope = struct {
|
|
id: Id,
|
|
parent: &Scope,
|
|
|
|
pub const Id = enum {
|
|
Decls,
|
|
Block,
|
|
Defer,
|
|
DeferExpr,
|
|
VarDecl,
|
|
CImport,
|
|
Loop,
|
|
FnDef,
|
|
CompTime,
|
|
};
|
|
};
|