The GC argument is now passed to the compiler and codegen.
This commit is contained in:
parent
ddffe7913c
commit
f9d28028b5
3 changed files with 6 additions and 6 deletions
|
|
@ -18,8 +18,8 @@ import TypeChecker.TypeCheckerIr (Ident (..))
|
|||
An easy way to actually "compile" this output is to
|
||||
Simply pipe it to LLI
|
||||
-}
|
||||
generateCode :: MIR.Program -> Err String
|
||||
generateCode (MIR.Program scs) = do
|
||||
generateCode :: MIR.Program -> Bool -> Err String
|
||||
generateCode (MIR.Program scs) addGc = do
|
||||
let tree = filter (not . detectPrelude) (sortBy lowData scs)
|
||||
let codegen = initCodeGenerator tree
|
||||
llvmIrToString . instructions <$> execStateT (compileScs tree) codegen
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue