Przeglądaj źródła

lower L7: EndSession takes the test-suffix flag

Prep for the flip: the driver passes lowerAst so EndSession can write
either "<mod>.ssa" (normal) or the test-only "<mod>L.ssa".
Eric Streit 6 dni temu
rodzic
commit
2509859574
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      compiler/src/Lower.def
  2. 1 1
      compiler/src/compiler.frm

+ 1 - 1
compiler/src/Lower.def

@@ -20,7 +20,7 @@ PROCEDURE LowerSession (units: ARRAY OF AST.Node; n: CARDINAL;
 PROCEDURE BeginSession (progName: ARRAY OF CHAR);
 PROCEDURE BeginUnit;
 PROCEDURE LowerUnitNow (unit: AST.Node; isProg: BOOLEAN);
-PROCEDURE EndSession;
+PROCEDURE EndSession (testSuffix: BOOLEAN);
 
 (* The expression/statement/declaration walkers are mutually recursive.
    gm2's link pass rejects FORWARD and V3 has no whole-module pass, so

+ 1 - 1
compiler/src/compiler.frm

@@ -351,7 +351,7 @@ MODULE -->Grammar;
       INC(f)
     END;
 
-    IF lowerAst THEN Lower.EndSession END;
+    IF lowerAst THEN Lower.EndSession(lowerAst) END;
 
     IF bad OR NOT SymTab.HaveProgram()
       THEN FileIO.WriteString(FileIO.StdOut, "Incorrect source")