Merge: Separate code compilation for autobox
authorJean Privat <jean@pryen.org>
Fri, 17 Jul 2015 21:03:12 +0000 (17:03 -0400)
committerJean Privat <jean@pryen.org>
Fri, 17 Jul 2015 21:03:12 +0000 (17:03 -0400)
commitc51e6df9e19e4b25cb14d82b2e92a730c3b14b49
treeaad710e8bcc98f2aea952d1762233512317c07f6
parent23e3bf51109cfe79ebb9dadf97c35791e53aeeba
parentecc03c417723703ade72701018d6f518cf892bfa
Merge: Separate code compilation for autobox

`autobox` (and and its cousin `autobox_extern`) where using RTA information when generating code in order to avoiding to use a C symbol (like a table identifier) that will not be defined in the final compiled program.

The problem is that the approach is incompatible with separate compilation principle where the generated code is independent or the program (thus independent of the liveness of the types of a given program).

The solution is to use symbols in the separate compilation, even for potential (or known) dead classes, and let the global phase define these symbols with invalid information.

Pull-Request: #1570
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>