import AsmCodeGen ( nativeCodeGen )
#endif
-#ifdef ILX
-import IlxGen ( ilxGen )
-#endif
-
#ifdef JAVA
import JavaGen ( javaGen )
import qualified PrintJava
import Cmm ( Cmm )
import HscTypes
import DynFlags
+
+import StaticFlags ( opt_DoTickyProfiling )
+
import ErrUtils ( dumpIfSet_dyn, showPass, ghcExit )
import Outputable
import Pretty ( Mode(..), printDoc )
#else
panic "Java support not compiled into this ghc";
#endif
- HscILX ->
-#ifdef ILX
- let tycons = typeEnvTyCons type_env in
- outputIlx dflags filenm mod_name tycons stg_binds;
-#else
- panic "ILX support not compiled into this ghc";
-#endif
}
; return stubs_exist
}
-- * -#include options from the cmdline and OPTIONS pragmas
-- * the _stub.h file, if there is one.
--
- pkg_configs <- getExplicitPackagesAnd dflags packages
+ pkg_configs <- getPreloadPackagesAnd dflags packages
let pkg_names = map (showPackageId.package) pkg_configs
c_includes <- getPackageCIncludes pkg_configs
all_headers = c_includes
++ reverse cmdline_includes
++ ffi_decl_headers
-
+
let cc_injects = unlines (map mk_include all_headers)
mk_include h_file =
case h_file of
%************************************************************************
%* *
-\subsection{Ilx}
-%* *
-%************************************************************************
-
-\begin{code}
-#ifdef ILX
-outputIlx dflags filename mod tycons stg_binds
- = doOutput filename (\ f -> printForC f pp_ilx)
- where
- pp_ilx = ilxGen mod tycons stg_binds
-#endif
-\end{code}
-
-
-%************************************************************************
-%* *
\subsection{Foreign import/export}
%* *
%************************************************************************