projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refine incomplete-pattern checks (Trac #4905)
[ghc-hetmet.git]
/
compiler
/
simplStg
/
SRT.lhs
diff --git
a/compiler/simplStg/SRT.lhs
b/compiler/simplStg/SRT.lhs
index
5618cb1
..
abad3ce
100644
(file)
--- a/
compiler/simplStg/SRT.lhs
+++ b/
compiler/simplStg/SRT.lhs
@@
-16,8
+16,6
@@
bindings have no CAF references, and record the fact in their IdInfo.
module SRT( computeSRTs ) where
module SRT( computeSRTs ) where
--- XXX This define is a bit of a hack, and should be done more nicely
-#define FAST_STRING_NOT_NEEDED 1
#include "HsVersions.h"
import StgSyn
#include "HsVersions.h"
import StgSyn
@@
-27,11
+25,7
@@
import VarEnv
import Maybes ( orElse, expectJust )
import Bitmap
import Maybes ( orElse, expectJust )
import Bitmap
-#ifdef DEBUG
import Outputable
import Outputable
-#endif
-
-import List
import Util
\end{code}
import Util
\end{code}
@@
-143,9
+137,7
@@
srtExpr table (StgLetNoEscape live1 live2 bind body)
srtExpr table body =: \ body' ->
StgLetNoEscape live1 live2 bind' body'
srtExpr table body =: \ body' ->
StgLetNoEscape live1 live2 bind' body'
-#ifdef DEBUG
-srtExpr table expr = pprPanic "srtExpr" (ppr expr)
-#endif
+srtExpr _table expr = pprPanic "srtExpr" (ppr expr)
srtAlt :: IdEnv Int -> StgAlt -> StgAlt
srtAlt table (con,args,used,rhs)
srtAlt :: IdEnv Int -> StgAlt -> StgAlt
srtAlt table (con,args,used,rhs)