mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile/internal/ssa: remove Frontend.MyImportPath
This method is only used to find the path of the function being compiled for hash debugging, but it was instead returning the path of the package being compiled. These are typically the same, but can be different for certain functions compiled across package boundaries (e.g., method value wrappers and generic functions). It's redundant either with f.fe.Func().Sym().Pkg.Path (package path of the function being compiled) or f.Config.ctxt.Pkgpath (package path of the compilation unit), so just remove it instead. Change-Id: I1daae09055043d0ecb1fcc874a0b0006a6f8bddf Reviewed-on: https://go-review.googlesource.com/c/go/+/526516 Auto-Submit: Matthew Dempsky <mdempsky@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Keith Randall <khr@google.com> Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
9c9fcabb02
commit
af8a2bde7b
4 changed files with 2 additions and 11 deletions
|
|
@ -167,9 +167,6 @@ type Frontend interface {
|
|||
// UseWriteBarrier reports whether write barrier is enabled
|
||||
UseWriteBarrier() bool
|
||||
|
||||
// MyImportPath provides the import name (roughly, the package) for the function being compiled.
|
||||
MyImportPath() string
|
||||
|
||||
// Func returns the ir.Func of the function being compiled.
|
||||
Func() *ir.Func
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue