]> Cypherpunks repositories - gostls13.git/commit
cmd/link/internal/ld: make Thearch unexported
authorquasilyte <quasilyte@gmail.com>
Sat, 31 Mar 2018 21:58:48 +0000 (00:58 +0300)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 2 Apr 2018 23:39:16 +0000 (23:39 +0000)
commitda02dcda0296b12811a8ee772c6f1cb146292637
treecfdd19a2b92980f05c8fa9d082f95f639912c211
parentfac7d5dd9566712b21486e50f9fcf554c06773a9
cmd/link/internal/ld: make Thearch unexported

s/Thearch/thearch/

This reduces the amount of exported global variables,
which in turn could make it easier to refactor them later.

Also updated somewhat vague comment about ld.Thearch.
There is no need for Thearch to be exported as Archinit is
called by ld.Main.

Updates #22095

Change-Id: I266b291f6eac0165f70c51964738206e066cea08
Reviewed-on: https://go-review.googlesource.com/103878
Run-TryBot: Iskander Sharipov <iskander.sharipov@intel.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/dwarf.go
src/cmd/link/internal/ld/elf.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/macho.go
src/cmd/link/internal/ld/main.go
src/cmd/link/internal/ld/pe.go
src/cmd/link/main.go