[project @ 2001-02-27 12:36:36 by rrt]
[ghc-hetmet.git] / ghc / compiler / main / CodeOutput.lhs
index 3335b89..fc4cd8d 100644 (file)
@@ -73,6 +73,9 @@ codeOutput dflags mod_name tycons core_binds stg_binds
                               >> return stub_names
              HscJava        -> outputJava dflags filenm mod_name tycons core_binds
                               >> return stub_names
+#ifdef ILX
+            HscILX         -> outputIlx mod_name tycons stg_binds
+#endif
        }
 
 doOutput :: String -> (Handle -> IO ()) -> IO ()
@@ -146,6 +149,22 @@ outputJava dflags filenm mod tycons core_binds
 
 %************************************************************************
 %*                                                                     *
+\subsection{Ilx}
+%*                                                                     *
+%************************************************************************
+
+\begin{code}
+#ifdef ILX
+outputIlx mod tycons stg_binds
+  =  doOutput (\ f -> printForC f pp_ilx)
+  where
+    pp_ilx = ilxGen mod tycons stg_binds
+#endif
+\end{code}
+
+
+%************************************************************************
+%*                                                                     *
 \subsection{Foreign import/export}
 %*                                                                     *
 %************************************************************************