diff options
Diffstat (limited to 'src/cmd/compile/internal/ssa/op.go')
-rw-r--r-- | src/cmd/compile/internal/ssa/op.go | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/cmd/compile/internal/ssa/op.go b/src/cmd/compile/internal/ssa/op.go index e4721a1ba8..c406b3b223 100644 --- a/src/cmd/compile/internal/ssa/op.go +++ b/src/cmd/compile/internal/ssa/op.go @@ -92,13 +92,6 @@ func (r *regInfo) String() string { type auxType int8 -type Param struct { - Type *types.Type - Offset int32 // Offset of Param if not in a register, spill offset if it is in a register input, types.BADWIDTH if it is a register output. - Reg []abi.RegIndex - Name *ir.Name // For OwnAux, need to prepend stores with Vardefs -} - type AuxNameOffset struct { Name *ir.Name Offset int64 @@ -198,7 +191,7 @@ func (a *AuxCall) ArgWidth() int64 { return a.abiInfo.ArgWidth() } -// OffsetOfResult returns the SP offset of result which (indexed 0, 1, etc). +// ParamAssignmentForResult returns the ABI Parameter assignment for result which (indexed 0, 1, etc). func (a *AuxCall) ParamAssignmentForResult(which int64) *abi.ABIParamAssignment { return a.abiInfo.OutParam(int(which)) } @@ -292,16 +285,6 @@ func (a *AuxCall) String() string { return fn + "}" } -// ACParamsToTypes translates a slice of Param into a slice of *types.Type -// This is a helper call for ssagen/ssa.go. -// TODO remove this, as part of replacing fields of AuxCall with abi.ABIParamResultInfo. -func ACParamsToTypes(ps []Param) (ts []*types.Type) { - for _, p := range ps { - ts = append(ts, p.Type) - } - return -} - // StaticAuxCall returns an AuxCall for a static call. func StaticAuxCall(sym *obj.LSym, paramResultInfo *abi.ABIParamResultInfo) *AuxCall { if paramResultInfo == nil { |