diff options
Diffstat (limited to 'SC')
-rw-r--r-- | SC/Afun.hs | 3 | ||||
-rw-r--r-- | SC/Exp.hs | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -87,7 +87,8 @@ compileAfun1 procname (A.Alam lhs (A.Abody acc)) = do outnames <- genAVarsTup (A.arraysR acc) (auxdefs, stmts) <- compileCommands <$> compileAcc' aenv destnames acc return (auxdefs - ,C.ProcDef procname + ,C.ProcDef C.defAttrs + procname (map (\case Left (TypedName t n) -> (t, n) Right (TypedAName t n) -> (t, n)) (tupanamesList' argnames) @@ -54,7 +54,7 @@ compileFun aenv (A.Lam lhs (A.Body body)) = do ++ map (\(TypedName t n) -> (t, n)) (itupList argnames) ++ map (\(TypedName t n) -> (t, n)) (itupList outnames) return $ CompiledFun - (C.ProcDef funname arguments (sts1 ++ sts2)) + (C.ProcDef C.defAttrs { C.faStatic = True }funname arguments (sts1 ++ sts2)) (\argexprs destnames -> map (C.EVar . snd) arrayarguments ++ itupList argexprs |