diff options
author | Ian Lynagh <igloo@earth.li> | 2012-06-12 18:52:05 +0100 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2012-06-12 18:52:05 +0100 |
commit | ab50c9c527d19f4df7ee6742b6d79c855d57c9b8 (patch) | |
tree | ac78c3fda6f3a8ec8235345f7b02518e0d809ba0 /compiler/codeGen/StgCmmProf.hs | |
parent | 543ec0852722318665d2f5228e29d44a5fc973f5 (diff) | |
download | haskell-ab50c9c527d19f4df7ee6742b6d79c855d57c9b8.tar.gz |
Pass DynFlags down to showSDoc
Diffstat (limited to 'compiler/codeGen/StgCmmProf.hs')
-rw-r--r-- | compiler/codeGen/StgCmmProf.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/codeGen/StgCmmProf.hs b/compiler/codeGen/StgCmmProf.hs index 6d16f012b3..6a53317385 100644 --- a/compiler/codeGen/StgCmmProf.hs +++ b/compiler/codeGen/StgCmmProf.hs @@ -218,7 +218,8 @@ emitCostCentreDecl cc = do ; modl <- newByteStringCLit (bytesFS $ Module.moduleNameFS $ Module.moduleName $ cc_mod cc) - ; loc <- newStringCLit (showSDoc (ppr (costCentreSrcSpan cc))) + ; dflags <- getDynFlags + ; loc <- newStringCLit (showPpr dflags (costCentreSrcSpan cc)) -- XXX should UTF-8 encode -- All cost centres will be in the main package, since we -- don't normally use -auto-all or add SCCs to other packages. |