mirror of
https://github.com/ziglang/zig.git
synced 2024-11-28 08:02:32 +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,
|
|
};
|
|
};
|