Merge: Do compilation
authorJean Privat <jean@pryen.org>
Tue, 6 Jan 2015 02:02:18 +0000 (21:02 -0500)
committerJean Privat <jean@pryen.org>
Tue, 6 Jan 2015 02:02:18 +0000 (21:02 -0500)
commit5dd4647d8788a02fe2d3117deaa7ee45af161aa6
treea5c32a0b6b436ad28d9f2ccbf648c6f5ff1a5f49
parent59d1076d0a07fc66e956ffad5b23ea0c686cefae
parent2b4a3aa20729e6e5b655f42fcdd47b29ff5d229d
Merge: Do compilation

refactorization: do in the Compiler classes what was in the ModelBuilder

Just add a method `AbstractCompiler::do_compiling` that contains what the various `ModelBuilder::run_*_compiler` where doing.
This simplifies `separate_erasure_compiler` since most the the code is just inherited.
The specific type handling code is moved into a separate method `compile_types`

Pull-Request: #1065
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
src/compiler/separate_erasure_compiler.nit