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:
Todd Neal 2017-04-17 18:46:09 -05:00
parent eb40f0621f
commit dc444418d9
9 changed files with 84 additions and 135 deletions

View file

@ -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": "",