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:
Robert Griesemer 2017-04-19 10:03:35 -07:00
parent ff7994ac10
commit ec241db2fd
8 changed files with 45 additions and 42 deletions

View file

@ -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"))
}
}