X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FnativeGen%2FPPC%2FCodeGen.hs;h=e57d3ca052303ce4c48b1129f0d86a013da40645;hb=20c0e6ccf28b0961d2c5f6516b57e52fa2c13b33;hp=6661a3ec92478326a06190c0476e6e130e417cec;hpb=17839aa386be663260622e5b86980e6fd9bb89a4;p=ghc-hetmet.git diff --git a/compiler/nativeGen/PPC/CodeGen.hs b/compiler/nativeGen/PPC/CodeGen.hs index 6661a3e..e57d3ca 100644 --- a/compiler/nativeGen/PPC/CodeGen.hs +++ b/compiler/nativeGen/PPC/CodeGen.hs @@ -55,6 +55,11 @@ import Data.Bits import Data.Int import Data.Word +#if darwin_TARGET_OS || linux_TARGET_OS +import BasicTypes +import FastString +#endif + -- ----------------------------------------------------------------------------- -- Top-level of the instruction selector @@ -1053,7 +1058,7 @@ genCCall target dest_regs argsAndHints do dflags <- getDynFlagsNat mopExpr <- cmmMakeDynamicReference dflags addImportNat CallReference $ - mkForeignLabel functionName Nothing True + mkForeignLabel functionName Nothing True IsFunction let mopLabelOrExpr = case mopExpr of CmmLit (CmmLabel lbl) -> Left lbl _ -> Right mopExpr