summaryrefslogtreecommitdiff
path: root/compiler/codeGen/StgCmmEnv.hs
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2012-09-04 13:57:26 +0100
committerSimon Marlow <marlowsd@gmail.com>2012-09-04 13:58:27 +0100
commitbd5354e31c98c489d58ec686dd87d0d2d5e4d622 (patch)
treedb9676904621271e124ff50d52d05fe1e9297fa2 /compiler/codeGen/StgCmmEnv.hs
parente6411395563c3d425bc78a78b189b33eb3d3cc07 (diff)
downloadhaskell-bd5354e31c98c489d58ec686dd87d0d2d5e4d622.tar.gz
Fix -split-objs with the new code generator
We need to make the SRT label external and unique when splitting, because it is shared amongst all the functions in the module. Also some SRT-related cleanup.
Diffstat (limited to 'compiler/codeGen/StgCmmEnv.hs')
-rw-r--r--compiler/codeGen/StgCmmEnv.hs8
1 files changed, 3 insertions, 5 deletions
diff --git a/compiler/codeGen/StgCmmEnv.hs b/compiler/codeGen/StgCmmEnv.hs
index 9f1f161d37..e4611237cc 100644
--- a/compiler/codeGen/StgCmmEnv.hs
+++ b/compiler/codeGen/StgCmmEnv.hs
@@ -180,15 +180,13 @@ cgLookupPanic :: Id -> FCode a
cgLookupPanic id
= do static_binds <- getStaticBinds
local_binds <- getBinds
- srt <- getSRTLabel
- pprPanic "StgCmmEnv: variable not found"
+ pprPanic "StgCmmEnv: variable not found"
(vcat [ppr id,
ptext (sLit "static binds for:"),
vcat [ ppr (cg_id info) | info <- varEnvElts static_binds ],
ptext (sLit "local binds for:"),
- vcat [ ppr (cg_id info) | info <- varEnvElts local_binds ],
- ptext (sLit "SRT label") <+> ppr srt
- ])
+ vcat [ ppr (cg_id info) | info <- varEnvElts local_binds ]
+ ])
--------------------