summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-05-01 16:34:51 +0100
committerIan Lynagh <igloo@earth.li>2011-05-01 16:34:51 +0100
commitb10b2c17bad2da6b325fdf5d85a5fa17dbb5e1cc (patch)
tree65422d447edfff2291167e8328ce9c2a172d0915 /compiler
parent4915e566cb661aa934e133c7c9b21c0d1964490a (diff)
downloadhaskell-b10b2c17bad2da6b325fdf5d85a5fa17dbb5e1cc.tar.gz
Remove an ifdef from ghci/ByteCodeAsm.lhs
Diffstat (limited to 'compiler')
-rw-r--r--compiler/ghci/ByteCodeAsm.lhs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/ghci/ByteCodeAsm.lhs b/compiler/ghci/ByteCodeAsm.lhs
index dfc77e51b2..e3c57b5cde 100644
--- a/compiler/ghci/ByteCodeAsm.lhs
+++ b/compiler/ghci/ByteCodeAsm.lhs
@@ -395,12 +395,11 @@ mkBits findLabel st proto_insns
= do st_l1 <- addToSS st_l0 (BCONPtrItbl (getName dcon))
return (sizeSS16 st_l0, (st_i0,st_l1,st_p0))
-#ifdef mingw32_TARGET_OS
literal st (MachLabel fs (Just sz) _)
+ | cTargetOS == Windows
= litlabel st (appendFS fs (mkFastString ('@':show sz)))
-- On Windows, stdcall labels have a suffix indicating the no. of
-- arg words, e.g. foo@8. testcase: ffi012(ghci)
-#endif
literal st (MachLabel fs _ _) = litlabel st fs
literal st (MachWord w) = int st (fromIntegral w)
literal st (MachInt j) = int st (fromIntegral j)