mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: rename Field's Width field to Offset
gorename -from '"cmd/compile/internal/gc".Field.Width' -to Offset Passes toolstash -cmp. Change-Id: I310538a1f60bbab470a6375e813e9d5eb52c5bbf Reviewed-on: https://go-review.googlesource.com/21230 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
85bbabd9c4
commit
62dddd4770
11 changed files with 40 additions and 36 deletions
|
|
@ -551,10 +551,10 @@ func nodarg(t interface{}, fp int) *Node {
|
|||
if first == nil {
|
||||
Fatalf("nodarg: bad struct")
|
||||
}
|
||||
if first.Width == BADWIDTH {
|
||||
if first.Offset == BADWIDTH {
|
||||
Fatalf("nodarg: offset not computed for %v", t)
|
||||
}
|
||||
n.Xoffset = first.Width
|
||||
n.Xoffset = first.Offset
|
||||
n.Addable = true
|
||||
case *Field:
|
||||
if fp == 1 || fp == -1 {
|
||||
|
|
@ -568,10 +568,10 @@ func nodarg(t interface{}, fp int) *Node {
|
|||
n = Nod(ONAME, nil, nil)
|
||||
n.Type = t.Type
|
||||
n.Sym = t.Sym
|
||||
if t.Width == BADWIDTH {
|
||||
if t.Offset == BADWIDTH {
|
||||
Fatalf("nodarg: offset not computed for %v", t)
|
||||
}
|
||||
n.Xoffset = t.Width
|
||||
n.Xoffset = t.Offset
|
||||
n.Addable = true
|
||||
n.Orig = t.Nname
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue