nitg: move `import compiler_ffi` to nitg
authorJean Privat <jean@pryen.org>
Wed, 2 Apr 2014 13:52:25 +0000 (09:52 -0400)
committerJean Privat <jean@pryen.org>
Wed, 2 Apr 2014 13:52:42 +0000 (09:52 -0400)
separate and global do not depends on ffi things (since `cname_blind` is
no more used in these modules).
Thus only the main module require `compiler_ffi` to provide ffi.

This is some great separation of concerns!

Signed-off-by: Jean Privat <jean@pryen.org>

src/global_compiler.nit
src/nitg.nit
src/separate_compiler.nit

index 1a3d2c1..ce8fde1 100644 (file)
@@ -25,7 +25,6 @@ module global_compiler
 
 import abstract_compiler
 import rapid_type_analysis
-import compiler_ffi
 
 redef class ModelBuilder
        # Entry point to performs a global compilation on the AST of a complete program.
index 965be59..4228a62 100644 (file)
@@ -25,6 +25,7 @@ import global_compiler
 import separate_erasure_compiler
 import separate_compiler
 import android_platform
+import compiler_ffi
 
 # Create a tool context to handle options and paths
 var toolcontext = new ToolContext
index 511ac15..5c46235 100644 (file)
@@ -18,7 +18,6 @@ module separate_compiler
 import abstract_compiler
 import layout_builders
 import rapid_type_analysis
-import compiler_ffi
 
 # Add separate compiler specific options
 redef class ToolContext