]> Cypherpunks repositories - gostls13.git/commit
cmd/internal: remove duplicate pathToPrefix function
authorTodd Neal <todd@tneal.org>
Mon, 17 Apr 2017 23:46:09 +0000 (18:46 -0500)
committerTodd Neal <todd@tneal.org>
Wed, 19 Apr 2017 11:47:45 +0000 (11:47 +0000)
commitdc444418d919b72f7744a521cc898252f3f355df
tree5045f7a7a8032f9c293fcbca967c9a905dc72321
parenteb40f0621f37e247597020e316febe701e377b51
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>
src/cmd/compile/fmt_test.go
src/cmd/compile/internal/gc/subr.go
src/cmd/internal/goobj/read.go
src/cmd/internal/goobj/read_test.go [deleted file]
src/cmd/internal/objabi/path.go [new file with mode: 0644]
src/cmd/internal/objabi/path_test.go [new file with mode: 0644]
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/objfile.go