diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-04-28 22:43:26 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-04-28 22:43:26 -0700 |
| commit | 0c71d2fdc1cfa251b1c45a93724240a052c77a92 (patch) | |
| tree | f90f4d7e31b7e483aa1c826feb387c705e43abf5 /src/codegen.zig | |
| parent | 3462193d30e54c17123cfe1e666d8e575d649426 (diff) | |
| download | zig-0c71d2fdc1cfa251b1c45a93724240a052c77a92.tar.gz zig-0c71d2fdc1cfa251b1c45a93724240a052c77a92.zip | |
stage2: implement semantic analysis for functions and global vars
* AstGen: add missing `break_inline` for comptime blocks.
* Module: call getTree() in byteOffset(). This generates the AST when
using cached ZIR and compile errors need to be reported.
* Scope.File: distinguish between successful ZIR generation and AIR
generation (when Decls in scope have been scanned).
- `semaFile` correctly avoids doing work twice.
* Implement first pass at `lookupInNamespace`. It has various TODOs
left, such as `usingnamespace`, and setting up Decl dependencies.
Diffstat (limited to 'src/codegen.zig')
| -rw-r--r-- | src/codegen.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.zig b/src/codegen.zig index ad401066ef..2ee57a998d 100644 --- a/src/codegen.zig +++ b/src/codegen.zig @@ -2313,7 +2313,7 @@ fn Function(comptime arch: std.Target.Cpu.Arch) type { } fn genDbgStmt(self: *Self, inst: *ir.Inst.DbgStmt) !MCValue { - // TODO when reworking tzir memory layout, rework source locations here as + // TODO when reworking AIR memory layout, rework source locations here as // well to be more efficient, as well as support inlined function calls correctly. // For now we convert LazySrcLoc to absolute byte offset, to match what the // existing codegen code expects. |
