diff options
author | Ian Lynagh <ian@well-typed.com> | 2012-09-14 15:24:30 +0100 |
---|---|---|
committer | Ian Lynagh <ian@well-typed.com> | 2012-09-14 15:24:30 +0100 |
commit | f203e63c6ff92bde63a206a58ea63ec082033b8a (patch) | |
tree | 0fdb84f953c6195727971d765a025c076fc5e07f /compiler/nativeGen/X86/Regs.hs | |
parent | 6f3be2b6ea39ee28d6cf8da08effb5dd215c92f2 (diff) | |
download | haskell-f203e63c6ff92bde63a206a58ea63ec082033b8a.tar.gz |
Move more constants into platformConstants
Diffstat (limited to 'compiler/nativeGen/X86/Regs.hs')
-rw-r--r-- | compiler/nativeGen/X86/Regs.hs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/nativeGen/X86/Regs.hs b/compiler/nativeGen/X86/Regs.hs index 16938a8f15..c88ea98425 100644 --- a/compiler/nativeGen/X86/Regs.hs +++ b/compiler/nativeGen/X86/Regs.hs @@ -54,6 +54,7 @@ import RegClass import OldCmm import CmmCallConv import CLabel ( CLabel ) +import DynFlags import Outputable import Platform import FastTypes @@ -440,8 +441,9 @@ instrClobberedRegs platform -- -- All machine registers that are used for argument-passing to Haskell functions -allHaskellArgRegs :: Platform -> [Reg] -allHaskellArgRegs platform = [ RegReal r | Just r <- map (globalRegMaybe platform) globalArgRegs ] +allHaskellArgRegs :: DynFlags -> [Reg] +allHaskellArgRegs dflags = [ RegReal r | Just r <- map (globalRegMaybe platform) (globalArgRegs dflags) ] + where platform = targetPlatform dflags -- allocatableRegs is allMachRegNos with the fixed-use regs removed. -- i.e., these are the regs for which we are prepared to allow the |