Tried using my new CCSP helper function to allocate arrays

This commit is contained in:
Neil Brown 2009-03-23 18:59:57 +00:00
parent 78f9fb6196
commit 9c433b248a

View File

@ -1977,8 +1977,8 @@ cgenAssert m e
--{{{ mobiles
cgenAllocMobile :: Meta -> A.Type -> Maybe A.Expression -> CGen()
cgenAllocMobile m (A.Mobile t@(A.Array ds innerT)) Nothing
= do tell ["MTAllocArray(wptr,"]
mobileElemType True innerT
= do tell ["MTAllocDataArray(wptr,"]
call genBytesIn m innerT (Left False)
tell [",", show $ length ds]
prefixComma $ [call genExpression e | A.Dimension e <- ds]
tell [")"]