mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: move and rename mkpkg to types.NewPkg
That's where it belongs. Also, moved pkgMap and pkgs globals. Change-Id: I531727fe5ce162c403efefec82f4cc90afa326d7 Reviewed-on: https://go-review.googlesource.com/41071 Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
ff7994ac10
commit
ec241db2fd
8 changed files with 45 additions and 42 deletions
|
|
@ -1501,7 +1501,7 @@ func dumptypestructs() {
|
|||
}
|
||||
|
||||
// generate import strings for imported packages
|
||||
for _, p := range pkgs {
|
||||
for _, p := range types.PkgList {
|
||||
if p.Direct {
|
||||
dimportpath(p)
|
||||
}
|
||||
|
|
@ -1535,7 +1535,7 @@ func dumptypestructs() {
|
|||
if flag_msan {
|
||||
dimportpath(msanpkg)
|
||||
}
|
||||
dimportpath(mkpkg("main"))
|
||||
dimportpath(types.NewPkg("main"))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue