diff options
author | Ben Gamari <ben@smart-cactus.org> | 2021-02-12 15:38:58 -0500 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-02-14 03:35:44 -0500 |
commit | bc5cb5f900941085e5e22f3e8cafa4deea3b589c (patch) | |
tree | 2384fd8c7bc19375b4306aec3ad55769aba626a8 /compiler/GHC/CmmToAsm | |
parent | 72f230837ef166d4c931621b484471090d5338f6 (diff) | |
download | haskell-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.hs | 12 |
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 |