aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/link/internal/ld/deadcode.go
diff options
context:
space:
mode:
authorMichael Matloob <matloob@golang.org>2016-08-22 10:33:13 -0400
committerMichael Matloob <matloob@golang.org>2016-08-23 16:28:59 +0000
commit24158644dddc414243fc3c033f85f0565b7ebd3e (patch)
treeb699204eeb92c580c1e1b6f81b88124f0bd8d1d8 /src/cmd/link/internal/ld/deadcode.go
parent5e66ac9ac61efb045f8ae28ff0fc019a4a98b473 (diff)
downloadgo-24158644dddc414243fc3c033f85f0565b7ebd3e.tar.xz
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>
Diffstat (limited to 'src/cmd/link/internal/ld/deadcode.go')
-rw-r--r--src/cmd/link/internal/ld/deadcode.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/link/internal/ld/deadcode.go b/src/cmd/link/internal/ld/deadcode.go
index 4fd35e1513..43873a2abe 100644
--- a/src/cmd/link/internal/ld/deadcode.go
+++ b/src/cmd/link/internal/ld/deadcode.go
@@ -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)))
}