X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2FcodeGen%2FStgCmmHpc.hs;h=ab95a66cd049d000a898e06a0add33a31b52a71e;hp=0205bd0911ca1a297845a7c7510235075637ef2b;hb=232e72122fa7f08690e3be2bb9f8a7f8024e37d5;hpb=176fa33f17dd78355cc572e006d2ab26898e2c69 diff --git a/compiler/codeGen/StgCmmHpc.hs b/compiler/codeGen/StgCmmHpc.hs index 0205bd0..ab95a66 100644 --- a/compiler/codeGen/StgCmmHpc.hs +++ b/compiler/codeGen/StgCmmHpc.hs @@ -6,31 +6,22 @@ -- ----------------------------------------------------------------------------- -{-# OPTIONS -w #-} --- The above warning supression flag is a temporary kludge. --- While working on this module you are encouraged to remove it and fix --- any warnings in the module. See --- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#Warnings --- for details - module StgCmmHpc ( initHpc, mkTickBox ) where import StgCmmUtils import StgCmmMonad import StgCmmForeign -import StgCmmClosure import MkZipCfgCmm import Cmm import CLabel import Module import CmmUtils -import ForeignCall import FastString import HscTypes import Char import StaticFlags -import PackageConfig +import BasicTypes mkTickBox :: Module -> Int -> CmmAGraph mkTickBox mod n @@ -45,7 +36,7 @@ mkTickBox mod n initHpc :: Module -> HpcInfo -> FCode CmmAGraph -- Emit top-level tables for HPC and return code to initialise -initHpc this_mod (NoHpcInfo {}) +initHpc _ (NoHpcInfo {}) = return mkNop initHpc this_mod (HpcInfo tickCount hashNo) = getCode $ whenC opt_Hpc $ @@ -64,7 +55,7 @@ initHpc this_mod (HpcInfo tickCount hashNo) ; id <- newTemp bWord -- TODO FIXME NOW ; emitCCall [(id,NoHint)] - (CmmLit $ CmmLabel $ mkForeignLabel mod_alloc Nothing False) + (CmmLit $ CmmLabel $ mkForeignLabel mod_alloc Nothing False IsFunction) [ (mkLblExpr mkHpcModuleNameLabel,AddrHint) , (CmmLit $ mkIntCLit tickCount,NoHint) , (CmmLit $ mkIntCLit hashNo,NoHint)