From: simonmar Date: Thu, 23 Jan 2003 16:39:30 +0000 (+0000) Subject: [project @ 2003-01-23 16:39:30 by simonmar] X-Git-Tag: Approx_11550_changesets_converted~1240 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=e989066d6f75ce92a7875ce4e5a7eb2329a6640a;p=ghc-hetmet.git [project @ 2003-01-23 16:39:30 by simonmar] Fix compilation with DEBUG --- diff --git a/ghc/rts/ProfHeap.c b/ghc/rts/ProfHeap.c index 675acd6..963fdef 100644 --- a/ghc/rts/ProfHeap.c +++ b/ghc/rts/ProfHeap.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: ProfHeap.c,v 1.41 2003/01/23 12:13:12 simonmar Exp $ + * $Id: ProfHeap.c,v 1.42 2003/01/23 16:39:30 simonmar Exp $ * * (c) The GHC Team, 1998-2000 * @@ -894,6 +894,10 @@ heapCensusChain( Census *census, bdescr *bd ) case TSO: prim = rtsTrue; +#ifdef DEBUG_HEAP_PROF + size = tso_sizeW((StgTSO *)p); + break; +#else if (RtsFlags.ProfFlags.includeTSOs) { size = tso_sizeW((StgTSO *)p); break; @@ -902,7 +906,8 @@ heapCensusChain( Census *census, bdescr *bd ) p += tso_sizeW((StgTSO *)p); continue; } - +#endif + default: barf("heapCensus"); }