mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.inline] cmd/compile/internal/ssa: rename various fields from Line to Pos
This is a mostly mechanical rename followed by manual fixes where necessary. Change-Id: Ie5c670b133db978f15dc03e50dc2da0c80fc8842 Reviewed-on: https://go-review.googlesource.com/34137 Reviewed-by: David Lazar <lazard@golang.org>
This commit is contained in:
parent
eab3707d6d
commit
cfd17f51c8
41 changed files with 4383 additions and 4383 deletions
|
|
@ -234,7 +234,7 @@ func (s *phiState) insertVarPhis(n int, var_ *Node, defs []*ssa.Block, typ ssa.T
|
|||
if !hasPhi.contains(c.ID) {
|
||||
// Add a phi to block c for variable n.
|
||||
hasPhi.add(c.ID)
|
||||
v := c.NewValue0I(currentRoot.Line, ssa.OpPhi, typ, int64(n)) // TODO: line number right?
|
||||
v := c.NewValue0I(currentRoot.Pos, ssa.OpPhi, typ, int64(n)) // TODO: line number right?
|
||||
// Note: we store the variable number in the phi's AuxInt field. Used temporarily by phi building.
|
||||
s.s.addNamedValue(var_, v)
|
||||
for i := 0; i < len(c.Preds); i++ {
|
||||
|
|
@ -467,7 +467,7 @@ loop:
|
|||
// Find variable value on each predecessor.
|
||||
args = args[:0]
|
||||
for _, e := range b.Preds {
|
||||
args = append(args, s.lookupVarOutgoing(e.Block(), v.Type, var_, v.Line))
|
||||
args = append(args, s.lookupVarOutgoing(e.Block(), v.Type, var_, v.Pos))
|
||||
}
|
||||
|
||||
// Decide if we need a phi or not. We need a phi if there
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue