Make CmmProc take CmmFormals as argument
authorMichael D. Adams <t-madams@microsoft.com>
Tue, 22 May 2007 15:20:08 +0000 (15:20 +0000)
committerMichael D. Adams <t-madams@microsoft.com>
Tue, 22 May 2007 15:20:08 +0000 (15:20 +0000)
commit418175d3c36ca51495d9dfb085fb01711e4c38f9
tree24feb6d2c8a75e36b82081be8073454c2f5161a9
parent77cc133da7af6961add020cab1ba9eadee3a0b67
Make CmmProc take CmmFormals as argument

Since a CmmCall returns CmmFormals which may include
global registers (and indeed one place in the code
returns the results of a CmmCall into BaseReg) and
since CPS conversion will change those return slots
into formal arguments for the continuation of the call,
CmmProc has to have CmmFormals for the formal arguments.

Oddly, the old code never made use of procedure arguments
so this change only effects the types and not any of the code.
(Because [] is both of type [LocalReg] and CmmFormals.)
compiler/cmm/Cmm.hs
compiler/cmm/PprCmm.hs
compiler/codeGen/CgInfoTbls.hs
compiler/codeGen/CgMonad.lhs