mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.regabi] cmd/compile: remove Name.orig
Passes toolstash -cmp. Change-Id: Ie563ece7e4da14af46adc660b3d39757eb47c067 Reviewed-on: https://go-review.googlesource.com/c/go/+/280734 Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com> Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
477b049060
commit
8fe1197654
2 changed files with 2 additions and 4 deletions
|
|
@ -44,8 +44,7 @@ type Name struct {
|
||||||
Offset_ int64
|
Offset_ int64
|
||||||
val constant.Value
|
val constant.Value
|
||||||
Opt interface{} // for use by escape analysis
|
Opt interface{} // for use by escape analysis
|
||||||
orig Node
|
Embed *[]Embed // list of embedded files, for ONAME var
|
||||||
Embed *[]Embed // list of embedded files, for ONAME var
|
|
||||||
|
|
||||||
PkgName *PkgName // real package for import . names
|
PkgName *PkgName // real package for import . names
|
||||||
// For a local variable (not param) or extern, the initializing assignment (OAS or OAS2).
|
// For a local variable (not param) or extern, the initializing assignment (OAS or OAS2).
|
||||||
|
|
@ -219,7 +218,6 @@ func newNameAt(pos src.XPos, op Op, sym *types.Sym) *Name {
|
||||||
n := new(Name)
|
n := new(Name)
|
||||||
n.op = op
|
n.op = op
|
||||||
n.pos = pos
|
n.pos = pos
|
||||||
n.orig = n
|
|
||||||
n.sym = sym
|
n.sym = sym
|
||||||
return n
|
return n
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ func TestSizeof(t *testing.T) {
|
||||||
_64bit uintptr // size on 64bit platforms
|
_64bit uintptr // size on 64bit platforms
|
||||||
}{
|
}{
|
||||||
{Func{}, 196, 344},
|
{Func{}, 196, 344},
|
||||||
{Name{}, 132, 232},
|
{Name{}, 124, 216},
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, tt := range tests {
|
for _, tt := range tests {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue