Properly generate info tables for static closures in C--.
authorEdward Z. Yang <ezyang@mit.edu>
Thu, 29 Aug 2013 05:07:07 +0000 (22:07 -0700)
committerEdward Z. Yang <ezyang@cs.stanford.edu>
Thu, 2 Oct 2014 05:26:38 +0000 (22:26 -0700)
commit178eb9060f369b216f3f401196e28eab4af5624d
treefc13a84d0724345459b1a0086055fb388803dd16
parent3b5a840bba375c4c4c11ccfeb283f84c3a1ef22c
Properly generate info tables for static closures in C--.

Summary:
Previously, we assumed all objects declared in C-- were not-static, even
ones which were CONSTR_NOCAF_STATIC.  This used to be harmless, but now
we need this information to be correct.

Part of remove HEAP_ALLOCED patch set (#8199)

Depends on D264

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Test Plan: validate

Reviewers: simonmar, austin

Subscribers: simonmar, ezyang, carter, thomie

Differential Revision: https://phabricator.haskell.org/D265

GHC Trac Issues: #8199
compiler/cmm/CmmParse.y
compiler/cmm/SMRep.lhs