summaryrefslogtreecommitdiff
path: root/compiler/codeGen/CgForeignCall.hs
diff options
context:
space:
mode:
authorBen.Lippmeier@anu.edu.au <unknown>2010-01-04 03:15:06 +0000
committerBen.Lippmeier@anu.edu.au <unknown>2010-01-04 03:15:06 +0000
commit6e9c0431a7cf2bf1a48f01db48c6a1d41fe15a09 (patch)
treeaf2b190722d7f5abd3a1940b4a0e3431bee61a30 /compiler/codeGen/CgForeignCall.hs
parent172b85497dc0da68176fa90c993abd9bcdc6b96f (diff)
downloadhaskell-6e9c0431a7cf2bf1a48f01db48c6a1d41fe15a09.tar.gz
Refactor PackageTarget back into StaticTarget
Diffstat (limited to 'compiler/codeGen/CgForeignCall.hs')
-rw-r--r--compiler/codeGen/CgForeignCall.hs9
1 files changed, 1 insertions, 8 deletions
diff --git a/compiler/codeGen/CgForeignCall.hs b/compiler/codeGen/CgForeignCall.hs
index 879d043329..901dd96502 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