mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: remove an unused function
Remove unused function AddrForParamSlot. Change-Id: I8e3ed8cc6607d30ad6da7bc6ccbaa87b7e001e79 Reviewed-on: https://go-review.googlesource.com/c/go/+/314909 Trust: Than McIntosh <thanm@google.com> Run-TryBot: Than McIntosh <thanm@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
parent
fa6ed6e81a
commit
756fd56bbf
1 changed files with 1 additions and 17 deletions
|
|
@ -7779,22 +7779,6 @@ func SpillSlotAddr(spill ssa.Spill, baseReg int16, extraOffset int64) obj.Addr {
|
|||
}
|
||||
}
|
||||
|
||||
// AddrForParamSlot fills in an Addr appropriately for a Spill,
|
||||
// Restore, or VARLIVE.
|
||||
func AddrForParamSlot(slot *ssa.LocalSlot, addr *obj.Addr) {
|
||||
// TODO replace this boilerplate in a couple of places.
|
||||
n, off := slot.N, slot.Off
|
||||
addr.Type = obj.TYPE_MEM
|
||||
addr.Sym = n.Linksym()
|
||||
addr.Offset = off
|
||||
if n.Class == ir.PPARAM || (n.Class == ir.PPARAMOUT && !n.IsOutputParamInRegisters()) {
|
||||
addr.Name = obj.NAME_PARAM
|
||||
addr.Offset += n.FrameOffset()
|
||||
} else { // out parameters in registers allocate stack slots like autos.
|
||||
addr.Name = obj.NAME_AUTO
|
||||
}
|
||||
}
|
||||
|
||||
var (
|
||||
BoundsCheckFunc [ssa.BoundsKindCount]*obj.LSym
|
||||
ExtendCheckFunc [ssa.BoundsKindCount]*obj.LSym
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue