mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/link/internal/ld: camelCase a buch of snake_case names
I've also unexported a few symbols that weren't used outside the package. Updates #16818 Change-Id: I39d9d87b3eec30b88b4a17c1333cfbbfa6b3518f Reviewed-on: https://go-review.googlesource.com/27468 Run-TryBot: Michael Matloob <matloob@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: David Crawshaw <crawshaw@golang.org>
This commit is contained in:
parent
5e66ac9ac6
commit
24158644dd
13 changed files with 233 additions and 233 deletions
|
|
@ -276,8 +276,8 @@ func (d *deadcodepass) flood() {
|
|||
}
|
||||
|
||||
if strings.HasPrefix(s.Name, "type.") && s.Name[5] != '.' {
|
||||
if decodetype_kind(s)&kindMask == kindInterface {
|
||||
for _, sig := range decodetype_ifacemethods(d.ctxt.Arch, s) {
|
||||
if decodetypeKind(s)&kindMask == kindInterface {
|
||||
for _, sig := range decodeIfaceMethods(d.ctxt.Arch, s) {
|
||||
if d.ctxt.Debugvlog > 1 {
|
||||
fmt.Fprintf(d.ctxt.Bso, "reached iface method: %s\n", sig)
|
||||
}
|
||||
|
|
@ -315,7 +315,7 @@ func (d *deadcodepass) flood() {
|
|||
// Decode runtime type information for type methods
|
||||
// to help work out which methods can be called
|
||||
// dynamically via interfaces.
|
||||
methodsigs := decodetype_methods(d.ctxt.Arch, s)
|
||||
methodsigs := decodetypeMethods(d.ctxt.Arch, s)
|
||||
if len(methods) != len(methodsigs) {
|
||||
panic(fmt.Sprintf("%q has %d method relocations for %d methods", s.Name, len(methods), len(methodsigs)))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue