projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Deal correctly with infix type constructors in GADT decls
[ghc-hetmet.git]
/
compiler
/
codeGen
/
CgProf.hs
diff --git
a/compiler/codeGen/CgProf.hs
b/compiler/codeGen/CgProf.hs
index
1488e34
..
9bbf05b
100644
(file)
--- a/
compiler/codeGen/CgProf.hs
+++ b/
compiler/codeGen/CgProf.hs
@@
-43,12
+43,12
@@
import MachOp
import CmmUtils ( zeroCLit, mkIntCLit, mkLblExpr )
import CLabel ( mkCCLabel, mkCCSLabel, mkRtsDataLabel )
import CmmUtils ( zeroCLit, mkIntCLit, mkLblExpr )
import CLabel ( mkCCLabel, mkCCSLabel, mkRtsDataLabel )
-import Module ( moduleString )
+import Module ( pprModule )
import Id ( Id )
import CostCentre
import StgSyn ( GenStgExpr(..), StgExpr )
import StaticFlags ( opt_SccProfilingOn )
import Id ( Id )
import CostCentre
import StgSyn ( GenStgExpr(..), StgExpr )
import StaticFlags ( opt_SccProfilingOn )
-import FastString ( FastString, mkFastString, LitString )
+import FastString ( FastString )
import Constants -- Lots of field offsets
import Outputable
import Constants -- Lots of field offsets
import Outputable
@@
-292,7
+292,7
@@
emitCostCentreDecl
-> Code
emitCostCentreDecl cc = do
{ label <- mkStringCLit (costCentreUserName cc)
-> Code
emitCostCentreDecl cc = do
{ label <- mkStringCLit (costCentreUserName cc)
- ; modl <- mkStringCLit (moduleString (cc_mod cc))
+ ; modl <- mkStringCLit (showSDoc (pprModule (cc_mod cc)))
; let
lits = [ zero, -- StgInt ccID,
label, -- char *label,
; let
lits = [ zero, -- StgInt ccID,
label, -- char *label,