Fix the unregisterised build
authorIan Lynagh <igloo@earth.li>
Wed, 20 May 2009 22:10:46 +0000 (22:10 +0000)
committerIan Lynagh <igloo@earth.li>
Wed, 20 May 2009 22:10:46 +0000 (22:10 +0000)
compiler/main/CodeOutput.lhs

index d2d7c7f..3b45a38 100644 (file)
@@ -144,10 +144,10 @@ outputC dflags filenm flat_absC packages
 
 \begin{code}
 outputAsm :: DynFlags -> FilePath -> [RawCmm] -> IO ()
-outputAsm dflags filenm flat_absC
 
 #ifndef OMIT_NATIVE_CODEGEN
 
+outputAsm dflags filenm flat_absC
   = do ncg_uniqs <- mkSplitUniqSupply 'n'
 
        {-# SCC "OutputAsm" #-} doOutput filenm $
@@ -157,6 +157,7 @@ outputAsm dflags filenm flat_absC
 
 #else /* OMIT_NATIVE_CODEGEN */
 
+outputAsm _ _ _
   = pprPanic "This compiler was built without a native code generator"
             (text "Use -fvia-C instead")