X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FdeSugar%2FCoverage.lhs;h=a9b1a528e475d8ed52eb7db2ff56ab9af177c2e6;hb=a13551ce57c67a333f41f0a6fe7e05a09d0c3614;hp=501ee817db02b195622fa443ccf3444e17d624d8;hpb=a171dac28baada2036577e7b0b4d7cc1c6836952;p=ghc-hetmet.git diff --git a/compiler/deSugar/Coverage.lhs b/compiler/deSugar/Coverage.lhs index 501ee81..a9b1a52 100644 --- a/compiler/deSugar/Coverage.lhs +++ b/compiler/deSugar/Coverage.lhs @@ -38,10 +38,8 @@ import Compat.Directory ( createDirectoryIfMissing ) import System.Directory ( createDirectoryIfMissing ) #endif -#if GHCI import Trace.Hpc.Mix import Trace.Hpc.Util -#endif import BreakArray import Data.HashTable ( hashString ) @@ -63,7 +61,6 @@ addCoverageTicksToBinds -> LHsBinds Id -> IO (LHsBinds Id, HpcInfo, ModBreaks) -#if GHCI addCoverageTicksToBinds dflags mod mod_loc tyCons binds = do let orig_file = @@ -102,7 +99,8 @@ addCoverageTicksToBinds dflags mod mod_loc tyCons binds = do when (length entries' /= tickBoxCount st) $ do panic "the number of .mix entries are inconsistent" let hashNo = mixHash orig_file modTime tabStop entries' - mixCreate hpc_dir mod_name (Mix orig_file modTime (toHash hashNo) tabStop entries') + mixCreate hpc_dir mod_name + $ Mix orig_file modTime (toHash hashNo) tabStop entries' return $ hashNo else do return $ 0 @@ -715,11 +713,3 @@ mixHash :: FilePath -> Integer -> Int -> [MixEntry] -> Int mixHash file tm tabstop entries = fromIntegral $ hashString (show $ Mix file tm 0 tabstop entries) \end{code} - - -\begin{code} -#else -addCoverageTicksToBinds dflags mod mod_loc tyCons binds = - return (binds, noHpcInfo, emptyModBreaks) -#endif -\end{code} \ No newline at end of file