selfhost: migrate tool sources to directory packages
Build w6a and w6l from package-main directories and expose the wcc backend through a narrow package API so w6c and wwdump no longer import implementation files. Retarget the remaining load-bearing fixtures and example sources to directory packages; retain the one intentional flat compiler collision as an explicitly composed raw unit.
This commit is contained in:
@@ -133,7 +133,7 @@ fn tupsse(i: i32) str = {
|
||||
// predicates this absorbs were the #22 neighbor-slot/zeros miscompile.
|
||||
// Checker twin: check.ww tupleelemslot / check.c N_TTUPLE; cstage twin:
|
||||
// tuple_eslot (cmd/w6c/cgen.c).
|
||||
export fn tupeslot(ti: *syntax.tinfo) i32 = {
|
||||
fn tupeslot(ti: *syntax.tinfo) i32 = {
|
||||
let t: *syntax.tinfo = ti;
|
||||
t = tichase(t);
|
||||
if (t == nil) { return 8; };
|
||||
@@ -148,7 +148,7 @@ export fn tupeslot(ti: *syntax.tinfo) i32 = {
|
||||
return 8;
|
||||
};
|
||||
|
||||
export fn tupeslotn(n: *syntax.node) i32 = {
|
||||
fn tupeslotn(n: *syntax.node) i32 = {
|
||||
if (n == nil) { return 8; };
|
||||
return tupeslot(n.type_: *syntax.tinfo);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user