Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alexbiehl-gc
GHC
Commits
90867aab
Commit
90867aab
authored
27 years ago
by
sof
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1998-02-26 13:47:07 by sof]
Dont use group part of a user/auto scc
parent
3de6d3f3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/compiler/profiling/CostCentre.lhs
+14
-7
14 additions, 7 deletions
ghc/compiler/profiling/CostCentre.lhs
with
14 additions
and
7 deletions
ghc/compiler/profiling/CostCentre.lhs
+
14
−
7
View file @
90867aab
...
@@ -385,11 +385,18 @@ uppCostCentre print_as_string cc
...
@@ -385,11 +385,18 @@ uppCostCentre print_as_string cc
basic_kind = do_kind kind
basic_kind = do_kind kind
module_kind = do_caf is_caf (moduleString mod_name ++ '/':
module_kind = do_caf is_caf (moduleString mod_name ++ '/':
basic_kind)
basic_kind)
grp_str = if (_NULL_ grp_name) then mod_name else grp_name
grp_str = []
full_kind = do_caf is_caf
{- TODO: re-instate this once interface file lexer
(moduleString mod_name ++
handles groups.
('/' : _UNPK_ grp_str) ++
grp_str =
('/' : basic_kind))
if (_NULL_ grp_name) then
[]
else
'/' : (_UNPK_ grp_name)
-}
full_kind = do_caf is_caf
(moduleString mod_name ++
grp_str ++ ('/' : basic_kind))
in
in
if (friendly_sty sty) then
if (friendly_sty sty) then
do_dupd sty is_dupd full_kind
do_dupd sty is_dupd full_kind
...
@@ -406,8 +413,8 @@ uppCostCentre print_as_string cc
...
@@ -406,8 +413,8 @@ uppCostCentre print_as_string cc
do_caf _ ls = ls
do_caf _ ls = ls
do_kind (UserCC name) = _UNPK_ name
do_kind (UserCC name) = _UNPK_ name
do_kind (AutoCC id) = do_id id ++ (if (
friendly_sty
sty) then "/AUTO" else "")
do_kind (AutoCC id) = do_id id ++ (if (
debugStyle
sty) then "/AUTO" else "")
do_kind (DictCC id) = do_id id ++ (if (
friendly_sty
sty) then "/DICT" else "")
do_kind (DictCC id) = do_id id ++ (if (
debugStyle
sty) then "/DICT" else "")
{-
{-
do_id is only applied in a (not print_as_string) context for local ids,
do_id is only applied in a (not print_as_string) context for local ids,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment