We can now print strings :)

This commit is contained in:
Samuel Hammersberg 2023-05-08 20:54:02 +02:00
parent 3755d41b59
commit 8ddb0ed052
6 changed files with 52 additions and 27 deletions

View file

@ -10,6 +10,7 @@ type2LlvmType (MIR.TLit id@(TIR.Ident name)) = case name of
"Int" -> I64
"Char" -> I8
"Bool" -> I1
"Unit" -> I16
_ -> CustomType id
type2LlvmType (MIR.TFun t xs) = do
let (t', xs') = function2LLVMType xs [type2LlvmType t]