X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FbasicTypes%2FLiteral.lhs;h=d6e9274ae630b9134463e5be73f035e16cb47d15;hb=432b9c9322181a3644083e3c19b7e240d90659e7;hp=f2ea137567308255cbf26c2c382cce0c5ec2396c;hpb=497302c44ad08c6c27d0e15d94a787f332c0cfec;p=ghc-hetmet.git diff --git a/compiler/basicTypes/Literal.lhs b/compiler/basicTypes/Literal.lhs index f2ea137..d6e9274 100644 --- a/compiler/basicTypes/Literal.lhs +++ b/compiler/basicTypes/Literal.lhs @@ -24,7 +24,6 @@ module Literal , mkMachChar, mkMachString -- ** Operations on Literals - , litSize , literalType , hashLiteral @@ -332,15 +331,6 @@ litFitsInChar (MachInt i) = fromInteger i <= ord minBound && fromInteger i >= ord maxBound litFitsInChar _ = False - --- | Finds a nominal size of a string literal. Every literal has size at least 1 -litSize :: Literal -> Int --- Used by CoreUnfold.sizeExpr -litSize (MachStr str) = 1 + ((lengthFS str + 3) `div` 4) - -- If size could be 0 then @f "x"@ might be too small - -- [Sept03: make literal strings a bit bigger to avoid fruitless - -- duplication of little strings] -litSize _other = 1 \end{code} Types