X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FcodeGen%2FStgCmmTicky.hs;h=2e4b29e73b0393917444dac94c227a40b22f306b;hb=ef70af356e3229cc5c64359bf7866e5fdf44bb09;hp=544f863012870d514f2a6f0a71466bed00cc69cd;hpb=785e4ab34b25c6f023183d6fabf5e74b27b416f9;p=ghc-hetmet.git diff --git a/compiler/codeGen/StgCmmTicky.hs b/compiler/codeGen/StgCmmTicky.hs index 544f863..2e4b29e 100644 --- a/compiler/codeGen/StgCmmTicky.hs +++ b/compiler/codeGen/StgCmmTicky.hs @@ -56,12 +56,13 @@ import CLabel import Module import Name import Id -import StaticFlags import BasicTypes import FastString import Constants import Outputable +import DynFlags + -- Turgid imports for showTypeCategory import PrelNames import TcType @@ -321,9 +322,9 @@ tickyAllocHeap hp -- Ticky utils ifTicky :: FCode () -> FCode () -ifTicky code - | opt_DoTickyProfiling = code - | otherwise = nopC +ifTicky code = do dflags <- getDynFlags + if doingTickyProfiling dflags then code + else nopC -- All the ticky-ticky counters are declared "unsigned long" in C bumpTickyCounter :: LitString -> FCode ()