summaryrefslogtreecommitdiff
path: root/compiler/GHC/CmmToAsm
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2021-02-12 15:38:58 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-02-14 03:35:44 -0500
commitbc5cb5f900941085e5e22f3e8cafa4deea3b589c (patch)
tree2384fd8c7bc19375b4306aec3ad55769aba626a8 /compiler/GHC/CmmToAsm
parent72f230837ef166d4c931621b484471090d5338f6 (diff)
downloadhaskell-bc5cb5f900941085e5e22f3e8cafa4deea3b589c.tar.gz
Drop GHC_LOADED_IN_GHCI
This previously supported the ghc-in-ghci script which has been since dropped. Hadrian's ghci support does not need this macro (which disabled uses of UnboxedTuples) since it uses `-fno-code` rather than produce bytecode.
Diffstat (limited to 'compiler/GHC/CmmToAsm')
-rw-r--r--compiler/GHC/CmmToAsm/Reg/Linear/State.hs12
1 files changed, 0 insertions, 12 deletions
diff --git a/compiler/GHC/CmmToAsm/Reg/Linear/State.hs b/compiler/GHC/CmmToAsm/Reg/Linear/State.hs
index ab05ab632a..b36270f3bc 100644
--- a/compiler/GHC/CmmToAsm/Reg/Linear/State.hs
+++ b/compiler/GHC/CmmToAsm/Reg/Linear/State.hs
@@ -1,9 +1,6 @@
{-# LANGUAGE CPP, PatternSynonyms, DeriveFunctor #-}
{-# LANGUAGE ScopedTypeVariables #-}
-
-#if !defined(GHC_LOADED_INTO_GHCI)
{-# LANGUAGE UnboxedTuples #-}
-#endif
-- | State monad for the linear register allocator.
@@ -56,20 +53,11 @@ import GHC.Types.Unique.Supply
import Control.Monad (ap)
--- Avoids using unboxed tuples when loading into GHCi
-#if !defined(GHC_LOADED_INTO_GHCI)
-
type RA_Result freeRegs a = (# RA_State freeRegs, a #)
pattern RA_Result :: a -> b -> (# a, b #)
pattern RA_Result a b = (# a, b #)
{-# COMPLETE RA_Result #-}
-#else
-
-data RA_Result freeRegs a = RA_Result {-# UNPACK #-} !(RA_State freeRegs) !a
- deriving (Functor)
-
-#endif
-- | The register allocator monad type.
newtype RegM freeRegs a