diff options
author | Michael D. Adams <adamsmd@cs.indiana.edu> | 2007-07-17 01:42:57 +0000 |
---|---|---|
committer | Michael D. Adams <adamsmd@cs.indiana.edu> | 2007-07-17 01:42:57 +0000 |
commit | 95e67967d9abbef73e8d355d0e168759b4ee0590 (patch) | |
tree | 4b5b0601420f0b20fb31021bed423d903a9598d2 /compiler/cmm/CmmCPSGen.hs | |
parent | 163efd68fae4e23a2d4182839d776da04c363153 (diff) | |
download | haskell-95e67967d9abbef73e8d355d0e168759b4ee0590.tar.gz |
Factor 'callerSaveVolatileRegs' out of the NCG and into CgUtil
This is needed because CgForeign and parts of the CPS pass now use
'callerSaveVolatileRegs' and not all platforms have access to the NCG.
Diffstat (limited to 'compiler/cmm/CmmCPSGen.hs')
-rw-r--r-- | compiler/cmm/CmmCPSGen.hs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/compiler/cmm/CmmCPSGen.hs b/compiler/cmm/CmmCPSGen.hs index 3b93b0947e..6c9b5a5d9a 100644 --- a/compiler/cmm/CmmCPSGen.hs +++ b/compiler/cmm/CmmCPSGen.hs @@ -17,7 +17,6 @@ import CmmCallConv import CgProf (curCCS, curCCSAddr) import CgUtils (cmmOffsetW) -import CgInfoTbls (entryCode) import SMRep import ForeignCall @@ -29,12 +28,6 @@ import List import Panic -import MachRegs (callerSaveVolatileRegs) - -- HACK: this is part of the NCG so we shouldn't use this, but we need - -- it for now to eliminate the need for saved regs to be in CmmCall. - -- The long term solution is to factor callerSaveVolatileRegs - -- from nativeGen into CPS - -- The format for the call to a continuation -- The fst is the arguments that must be passed to the continuation -- by the continuation's caller. |