From: Robert Griesemer Date: Thu, 30 Mar 2017 21:04:54 +0000 (-0700) Subject: cmd/compile: remove lookupBytes X-Git-Tag: go1.9beta1~901 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f7027b4b2dc9c822efd94f1d84189a60291ae152;p=gostls13.git cmd/compile: remove lookupBytes Change-Id: I08c264f5f3744d835e407534c492ef8c43e1a700 Reviewed-on: https://go-review.googlesource.com/38991 Run-TryBot: Robert Griesemer Reviewed-by: Martin Möhrmann TryBot-Result: Gobot Gobot --- diff --git a/src/cmd/compile/internal/gc/subr.go b/src/cmd/compile/internal/gc/subr.go index 96f97cec24..c013ad02f3 100644 --- a/src/cmd/compile/internal/gc/subr.go +++ b/src/cmd/compile/internal/gc/subr.go @@ -215,17 +215,13 @@ func lookupf(format string, a ...interface{}) *Sym { return lookup(fmt.Sprintf(format, a...)) } -func lookupBytes(name []byte) *Sym { - return localpkg.LookupBytes(name) -} - // lookupN looks up the symbol starting with prefix and ending with // the decimal n. If prefix is too long, lookupN panics. func lookupN(prefix string, n int) *Sym { var buf [20]byte // plenty long enough for all current users copy(buf[:], prefix) b := strconv.AppendInt(buf[:len(prefix)], int64(n), 10) - return lookupBytes(b) + return localpkg.LookupBytes(b) } // autolabel generates a new Name node for use with