summaryrefslogtreecommitdiff
path: root/compiler/nativeGen/RegAlloc/Linear/StackMap.hs
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-07-15 19:06:04 +0100
committerIan Lynagh <igloo@earth.li>2011-07-15 19:11:34 +0100
commitec7b75121e09d4dc996fdba61efebff1a79536cb (patch)
treeb707d7473fd84ea1419d3232d1ca86ac46b19c66 /compiler/nativeGen/RegAlloc/Linear/StackMap.hs
parent730301c60e6ccd9ed4fb248bcd2399f938a43d25 (diff)
downloadhaskell-ec7b75121e09d4dc996fdba61efebff1a79536cb.tar.gz
Remove more defaultTargetPlatform uses
Diffstat (limited to 'compiler/nativeGen/RegAlloc/Linear/StackMap.hs')
-rw-r--r--compiler/nativeGen/RegAlloc/Linear/StackMap.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/nativeGen/RegAlloc/Linear/StackMap.hs b/compiler/nativeGen/RegAlloc/Linear/StackMap.hs
index 62bf6adb2a..1dd410aa46 100644
--- a/compiler/nativeGen/RegAlloc/Linear/StackMap.hs
+++ b/compiler/nativeGen/RegAlloc/Linear/StackMap.hs
@@ -22,6 +22,7 @@ where
import RegAlloc.Linear.FreeRegs
import Outputable
+import Platform
import UniqFM
import Unique
@@ -39,8 +40,8 @@ data StackMap
-- | An empty stack map, with all slots available.
-emptyStackMap :: StackMap
-emptyStackMap = StackMap [0..maxSpillSlots] emptyUFM
+emptyStackMap :: Platform -> StackMap
+emptyStackMap platform = StackMap [0 .. maxSpillSlots platform] emptyUFM
-- | If this vreg unique already has a stack assignment then return the slot number,