Enabled compiling to llvm again.

This commit is contained in:
Samuel Hammersberg 2023-03-24 17:29:00 +01:00
parent b1209b3353
commit d6d0fb7146
2 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
add : Int -> Int -> Int ;
add x y = x + y;
add : Int ;
add = 5;
main : Int ;
main = add 4 6 ;
main = add ;

View file

@ -59,7 +59,7 @@ main' debug s = do
when check (removeDirectoryRecursive "output")
createDirectory "output"
writeFile "output/llvm.ll" compiled
-- if debug then debugDotViz else putStrLn compiled
if debug then debugDotViz else putStrLn compiled
-- interpred <- fromInterpreterErr $ interpret lifted
-- putStrLn "\n-- interpret"