X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2FcodeGen%2FCgForeignCall.hs;h=901dd96502e71f3c94f00272409dd54f19d3d154;hp=879d04332949709de68a82fbdca58bacf0539170;hb=6e9c0431a7cf2bf1a48f01db48c6a1d41fe15a09;hpb=172b85497dc0da68176fa90c993abd9bcdc6b96f diff --git a/compiler/codeGen/CgForeignCall.hs b/compiler/codeGen/CgForeignCall.hs index 879d043..901dd96 100644 --- a/compiler/codeGen/CgForeignCall.hs +++ b/compiler/codeGen/CgForeignCall.hs @@ -78,16 +78,9 @@ emitForeignCall results (CCall (CCallSpec target cconv safety)) args live where (call_args, cmm_target) = case target of - - -- A target label known to be in the current package. - StaticTarget lbl - -> ( args - , CmmLit (CmmLabel - (mkForeignLabel lbl call_size ForeignLabelInThisPackage IsFunction))) - -- If the packageId is Nothing then the label is taken to be in the -- package currently being compiled. - PackageTarget lbl mPkgId + StaticTarget lbl mPkgId -> let labelSource = case mPkgId of Nothing -> ForeignLabelInThisPackage