X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2FcodeGen%2FCgHpc.hs;h=acaa266288b477133b215344fc8d956c9b100fda;hp=811029bb1829f9ae1d9c6e5ac54b4f472279b42f;hb=17b297d97d327620ed6bfab942f8992b2446f1bf;hpb=01ecefa4b97106fec5c139c5514e5d56e59ecbaf diff --git a/compiler/codeGen/CgHpc.hs b/compiler/codeGen/CgHpc.hs index 811029b..acaa266 100644 --- a/compiler/codeGen/CgHpc.hs +++ b/compiler/codeGen/CgHpc.hs @@ -6,6 +6,13 @@ -- ----------------------------------------------------------------------------- +{-# OPTIONS_GHC -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/WorkingConventions#Warnings +-- for details + module CgHpc (cgTickBox, initHpc, hpcTable) where import Cmm @@ -65,7 +72,7 @@ initHpc this_mod (HpcInfo tickCount hashNo) ; emitForeignCall' PlayRisky [(id,NoHint)] - (CmmForeignCall + (CmmCallee (CmmLit $ CmmLabel $ mkForeignLabel mod_alloc Nothing False) CCallConv ) @@ -76,6 +83,7 @@ initHpc this_mod (HpcInfo tickCount hashNo) ] (Just []) NoC_SRT -- No SRT b/c we PlayRisky + CmmMayReturn } where mod_alloc = mkFastString "hs_hpc_module"