projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a50b33
)
SRT labels don't need to be globally visible
author
Simon Marlow
<marlowsd@gmail.com>
Fri, 25 Jul 2008 08:09:01 +0000
(08:09 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Fri, 25 Jul 2008 08:09:01 +0000
(08:09 +0000)
Saves space in the symbol table and speeds up linking
compiler/cmm/CLabel.hs
patch
|
blob
|
history
diff --git
a/compiler/cmm/CLabel.hs
b/compiler/cmm/CLabel.hs
index
8989276
..
0c3c007
100644
(file)
--- a/
compiler/cmm/CLabel.hs
+++ b/
compiler/cmm/CLabel.hs
@@
-528,6
+528,8
@@
externallyVisibleCLabel (PlainModuleInitLabel _)= True
externallyVisibleCLabel ModuleRegdLabel = False
externallyVisibleCLabel (RtsLabel _) = True
externallyVisibleCLabel (ForeignLabel _ _ _) = True
+externallyVisibleCLabel (IdLabel name SRT) = False
+ -- SRTs don't need to be external
externallyVisibleCLabel (IdLabel name _) = isExternalName name
externallyVisibleCLabel (CC_Label _) = True
externallyVisibleCLabel (CCS_Label _) = True