mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/internal: remove duplicate pathToPrefix function
goobj.importPathToPrefix is 3x faster than gc.pathToPrefix so rename and move it to cmd/internal/objabi which is already imported by both goobj and gc. Change-Id: I10eda5bce95ef6d5d888818c5c47258c2833ea45 Reviewed-on: https://go-review.googlesource.com/40875 Run-TryBot: Todd Neal <todd@tneal.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
eb40f0621f
commit
dc444418d9
9 changed files with 84 additions and 135 deletions
|
|
@ -606,7 +606,6 @@ var knownFormats = map[string]string{
|
|||
"[]cmd/compile/internal/ssa.ID %v": "",
|
||||
"[]string %v": "",
|
||||
"bool %v": "",
|
||||
"byte %02x": "",
|
||||
"byte %08b": "",
|
||||
"byte %c": "",
|
||||
"cmd/compile/internal/arm.shift %d": "",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue