projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
FIX #1110: the linker also needs the workaround
[ghc-hetmet.git]
/
compiler
/
codeGen
/
CgInfoTbls.hs
diff --git
a/compiler/codeGen/CgInfoTbls.hs
b/compiler/codeGen/CgInfoTbls.hs
index
0d6925b
..
e2e07f9
100644
(file)
--- a/
compiler/codeGen/CgInfoTbls.hs
+++ b/
compiler/codeGen/CgInfoTbls.hs
@@
-47,8
+47,6
@@
import StaticFlags
import Maybes
import Constants
import Maybes
import Constants
-import Outputable
-
-------------------------------------------------------------------------
--
-- Generating the info table and code for a closure
-------------------------------------------------------------------------
--
-- Generating the info table and code for a closure
@@
-89,7
+87,7
@@
emitClosureCodeAndInfoTable cl_info args body
; conName <-
if is_con
; conName <-
if is_con
- then do cstr <- mkStringCLit $ fromJust conIdentity
+ then do cstr <- mkByteStringCLit $ fromJust conIdentity
return (makeRelativeRefTo info_lbl cstr)
else return (mkIntCLit 0)
return (makeRelativeRefTo info_lbl cstr)
else return (mkIntCLit 0)
@@
-111,7
+109,8
@@
emitClosureCodeAndInfoTable cl_info args body
Just con -> -- Constructors don't have an SRT
-- We keep the *zero-indexed* tag in the srt_len
-- field of the info table.
Just con -> -- Constructors don't have an SRT
-- We keep the *zero-indexed* tag in the srt_len
-- field of the info table.
- (mkIntCLit 0, fromIntegral (dataConTagZ con), Just $ dataConIdentity con)
+ (mkIntCLit 0, fromIntegral (dataConTagZ con),
+ Just $ dataConIdentity con)
Nothing -> -- Not a constructor
let (label, len) = srtLabelAndLength srt info_lbl
Nothing -> -- Not a constructor
let (label, len) = srtLabelAndLength srt info_lbl