Refactoring only: remove [Id] field from ForeignStubs
authorSimon Marlow <simonmar@microsoft.com>
Sun, 26 Aug 2007 07:33:22 +0000 (07:33 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Sun, 26 Aug 2007 07:33:22 +0000 (07:33 +0000)
commit663b391470a783e8f23414c07c18a020850d2fb8
tree50c2ccc3e28fd7c1e50cccb79868029aa933b8cc
parent5822cb8d13aa3c05d2b46b4510c13d94b902eb21
Refactoring only: remove [Id] field from ForeignStubs
We used to pass the list of top-level foreign exported bindings to the
code generator so that it could create StablePtrs for them in the
stginit code.  Now we don't use stginit unless profiling, and the
StablePtrs are generated by C functions marked with
attribute((constructor)).  This patch removes various bits associated
with the old way of doing things, which were previously left in place
in case we wanted to switch back, I presume.  Also I refactored
dsForeigns to clean it up a bit.
compiler/codeGen/CodeGen.lhs
compiler/deSugar/DsForeign.lhs
compiler/main/CodeOutput.lhs
compiler/main/HscMain.lhs
compiler/main/HscTypes.lhs