From 7b11baa68c36fdf5e441c76061fec3a38bc5dbbb Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Mon, 3 Sep 2012 23:42:17 +0100 Subject: Make -fhpc a dynamic flag --- compiler/codeGen/CodeGen.lhs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'compiler/codeGen/CodeGen.lhs') diff --git a/compiler/codeGen/CodeGen.lhs b/compiler/codeGen/CodeGen.lhs index 29193137a7..311f947248 100644 --- a/compiler/codeGen/CodeGen.lhs +++ b/compiler/codeGen/CodeGen.lhs @@ -35,7 +35,6 @@ import OldPprCmm () import StgSyn import PrelNames import DynFlags -import StaticFlags import HscTypes import CostCentre @@ -101,7 +100,7 @@ mkModuleInit mkModuleInit dflags cost_centre_info this_mod hpc_info = do { -- Allocate the static boolean that records if this - ; whenC (opt_Hpc) $ + ; whenC (dopt Opt_Hpc dflags) $ hpcTable this_mod hpc_info ; whenC (dopt Opt_SccProfilingOn dflags) $ do -- cgit v1.2.1