summaryrefslogtreecommitdiff
path: root/compiler/codeGen
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2019-05-30 20:06:24 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-06-19 22:16:16 -0400
commitbff2f24ba9104275c665b6a0cf30a8dd18407392 (patch)
treeec8f3bc21dfc3e8bb09ec69d82ac499d12489093 /compiler/codeGen
parent3ae23992786c7ea3211ab6f13e1d61a5edfe5952 (diff)
downloadhaskell-bff2f24ba9104275c665b6a0cf30a8dd18407392.tar.gz
Move 'Platform' to ghc-boot
ghc-pkg needs to be aware of platforms so it can figure out which subdire within the user package db to use. This is admittedly roundabout, but maybe Cabal could use the same notion of a platform as GHC to good affect too.
Diffstat (limited to 'compiler/codeGen')
-rw-r--r--compiler/codeGen/CodeGen/Platform.hs2
-rw-r--r--compiler/codeGen/StgCmmCon.hs2
-rw-r--r--compiler/codeGen/StgCmmPrim.hs2
3 files changed, 3 insertions, 3 deletions
diff --git a/compiler/codeGen/CodeGen/Platform.hs b/compiler/codeGen/CodeGen/Platform.hs
index 9d9a0cf2d1..bc216758a0 100644
--- a/compiler/codeGen/CodeGen/Platform.hs
+++ b/compiler/codeGen/CodeGen/Platform.hs
@@ -6,7 +6,7 @@ module CodeGen.Platform
import GhcPrelude
import CmmExpr
-import Platform
+import GHC.Platform
import Reg
import qualified CodeGen.Platform.ARM as ARM
diff --git a/compiler/codeGen/StgCmmCon.hs b/compiler/codeGen/StgCmmCon.hs
index 258896ff1a..67a9776eac 100644
--- a/compiler/codeGen/StgCmmCon.hs
+++ b/compiler/codeGen/StgCmmCon.hs
@@ -44,7 +44,7 @@ import RepType (countConRepArgs)
import Literal
import PrelInfo
import Outputable
-import Platform
+import GHC.Platform
import Util
import MonadUtils (mapMaybeM)
diff --git a/compiler/codeGen/StgCmmPrim.hs b/compiler/codeGen/StgCmmPrim.hs
index 2d56bf41d5..c3f9d5a279 100644
--- a/compiler/codeGen/StgCmmPrim.hs
+++ b/compiler/codeGen/StgCmmPrim.hs
@@ -31,7 +31,7 @@ import StgCmmHeap
import StgCmmProf ( costCentreFrom )
import DynFlags
-import Platform
+import GHC.Platform
import BasicTypes
import BlockId
import MkGraph