diff options
author | Ian Lynagh <igloo@earth.li> | 2011-07-15 19:06:04 +0100 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2011-07-15 19:11:34 +0100 |
commit | ec7b75121e09d4dc996fdba61efebff1a79536cb (patch) | |
tree | b707d7473fd84ea1419d3232d1ca86ac46b19c66 /compiler/nativeGen/RegAlloc/Linear/StackMap.hs | |
parent | 730301c60e6ccd9ed4fb248bcd2399f938a43d25 (diff) | |
download | haskell-ec7b75121e09d4dc996fdba61efebff1a79536cb.tar.gz |
Remove more defaultTargetPlatform uses
Diffstat (limited to 'compiler/nativeGen/RegAlloc/Linear/StackMap.hs')
-rw-r--r-- | compiler/nativeGen/RegAlloc/Linear/StackMap.hs | 5 |
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, |