projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove dead code in TcSimplify
[ghc-hetmet.git]
/
compiler
/
cmm
/
CLabel.hs
diff --git
a/compiler/cmm/CLabel.hs
b/compiler/cmm/CLabel.hs
index
6d8018a
..
28c43e1
100644
(file)
--- a/
compiler/cmm/CLabel.hs
+++ b/
compiler/cmm/CLabel.hs
@@
-89,6
+89,7
@@
module CLabel (
mkRtsApFastLabel,
mkForeignLabel,
mkRtsApFastLabel,
mkForeignLabel,
+ addLabelSize,
mkCCLabel, mkCCSLabel,
mkCCLabel, mkCCSLabel,
@@
-364,6
+365,12
@@
mkApEntryLabel upd off = RtsLabel (RtsApEntry upd off)
mkForeignLabel :: FastString -> Maybe Int -> Bool -> CLabel
mkForeignLabel str mb_sz is_dynamic = ForeignLabel str mb_sz is_dynamic
mkForeignLabel :: FastString -> Maybe Int -> Bool -> CLabel
mkForeignLabel str mb_sz is_dynamic = ForeignLabel str mb_sz is_dynamic
+addLabelSize :: CLabel -> Int -> CLabel
+addLabelSize (ForeignLabel str _ is_dynamic) sz
+ = ForeignLabel str (Just sz) is_dynamic
+addLabelSize label _
+ = label
+
-- Cost centres etc.
mkCCLabel cc = CC_Label cc
-- Cost centres etc.
mkCCLabel cc = CC_Label cc