Enabled compiling to llvm again.
This commit is contained in:
parent
b1209b3353
commit
d6d0fb7146
2 changed files with 4 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
add : Int -> Int -> Int ;
|
add : Int ;
|
||||||
add x y = x + y;
|
add = 5;
|
||||||
|
|
||||||
main : Int ;
|
main : Int ;
|
||||||
main = add 4 6 ;
|
main = add ;
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ main' debug s = do
|
||||||
when check (removeDirectoryRecursive "output")
|
when check (removeDirectoryRecursive "output")
|
||||||
createDirectory "output"
|
createDirectory "output"
|
||||||
writeFile "output/llvm.ll" compiled
|
writeFile "output/llvm.ll" compiled
|
||||||
-- if debug then debugDotViz else putStrLn compiled
|
if debug then debugDotViz else putStrLn compiled
|
||||||
|
|
||||||
-- interpred <- fromInterpreterErr $ interpret lifted
|
-- interpred <- fromInterpreterErr $ interpret lifted
|
||||||
-- putStrLn "\n-- interpret"
|
-- putStrLn "\n-- interpret"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue