rename lower to codegen

This commit is contained in:
nora 2023-08-02 20:24:40 +02:00
parent a1d04d264e
commit d9ab81bed1
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,5 @@
import { TY_I32, TY_INT, TyStruct } from "./ast"; import { TY_I32, TY_INT, TyStruct } from "./ast";
import { layoutOfStruct } from "./lower"; import { layoutOfStruct } from "./codegen";
it("should compute struct layout correctly", () => { it("should compute struct layout correctly", () => {
const ty: TyStruct = { const ty: TyStruct = {

View file

@ -1012,6 +1012,8 @@ function lowerExpr(
expr.fields.forEach((field) => lowerExpr(fcx, instrs, field)); expr.fields.forEach((field) => lowerExpr(fcx, instrs, field));
break; break;
} }
case "refcount":
todo("refcount");
default: { default: {
const _: never = expr; const _: never = expr;
} }