]> Cypherpunks.ru repositories - gostls13.git/commitdiff
cmd/link: delete oReader.flags
authorCherry Mui <cherryyz@google.com>
Mon, 21 Mar 2022 19:15:40 +0000 (15:15 -0400)
committerCherry Mui <cherryyz@google.com>
Tue, 22 Mar 2022 14:16:25 +0000 (14:16 +0000)
Same information is provided from the fields of the embedded
goobj.Reader, and are accessed through it. Delete the flags field.

Change-Id: I7a4f5dca054e567443d719b2931fceff231d6efc
Reviewed-on: https://go-review.googlesource.com/c/go/+/394216
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/loader/loader.go

index 34c1c6a4c86c52a95e3f6aefcc1192e8ba4280ff..dfaad10143be5de936f6c02fea74c7892dccb02a 100644 (file)
@@ -75,8 +75,7 @@ func (a Aux) Sym() Sym { return a.l.resolve(a.r, a.Aux.Sym()) }
 type oReader struct {
        *goobj.Reader
        unit         *sym.CompilationUnit
-       version      int    // version of static symbol
-       flags        uint32 // read from object file
+       version      int // version of static symbol
        pkgprefix    string
        syms         []Sym    // Sym's global index, indexed by local index
        pkg          []uint32 // indices of referenced package by PkgIdx (index into loader.objs array)
@@ -2076,7 +2075,6 @@ func (l *Loader) Preload(localSymVersion int, f *bio.Reader, lib *sym.Library, u
                Reader:       r,
                unit:         unit,
                version:      localSymVersion,
-               flags:        r.Flags(),
                pkgprefix:    pkgprefix,
                syms:         make([]Sym, ndef+nhashed64def+nhasheddef+r.NNonpkgdef()+r.NNonpkgref()),
                ndef:         ndef,