[project @ 2000-02-18 10:25:53 by simonmar]
authorsimonmar <unknown>
Fri, 18 Feb 2000 10:25:53 +0000 (10:25 +0000)
committersimonmar <unknown>
Fri, 18 Feb 2000 10:25:53 +0000 (10:25 +0000)
Module size wasn't taking into account the data section.

glafp-utils/nofib-analyse/Slurp.hs

index 92a0529..2f11a7d 100644 (file)
@@ -1,5 +1,5 @@
 -----------------------------------------------------------------------------
--- $Id: Slurp.hs,v 1.1 1999/11/12 11:54:17 simonmar Exp $
+-- $Id: Slurp.hs,v 1.2 2000/02/18 10:25:53 simonmar Exp $
 
 -- (c) Simon Marlow 1997-1999
 -----------------------------------------------------------------------------
@@ -348,7 +348,7 @@ parse_size prog mod (l:ls) =
                                              Just (read text + read datas),
                                    compile_status = Success})]
                 | otherwise ->
-                       let ms  = addToFM emptyFM mod (read text)
+                       let ms  = addToFM emptyFM mod (read text + read datas)
                        in
                        [(prog,emptyResults{module_size = ms})]