1
0
mirror of https://github.com/golang/go synced 2024-10-01 09:28:37 -06:00

go.tools/go/ssa: fix breakage caused by removal of types.NewPackage parameter.

TBR=gri
R=gri
CC=golang-codereviews
https://golang.org/cl/66600045
This commit is contained in:
Alan Donovan 2014-02-20 19:49:38 -05:00
parent 9111cead20
commit 01263f0a00
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ type opaqueType struct {
func (t *opaqueType) String() string { return t.name } func (t *opaqueType) String() string { return t.name }
// A bogus "reflect" type-checker package. Shared across interpreters. // A bogus "reflect" type-checker package. Shared across interpreters.
var reflectTypesPackage = types.NewPackage("reflect", "reflect", nil) var reflectTypesPackage = types.NewPackage("reflect", "reflect")
// rtype is the concrete type the interpreter uses to implement the // rtype is the concrete type the interpreter uses to implement the
// reflect.Type interface. Since its type is opaque to the target // reflect.Type interface. Since its type is opaque to the target

View File

@ -32,7 +32,7 @@ func (prog *Program) CreateTestMainPackage(pkgs ...*Package) *Package {
Prog: prog, Prog: prog,
Members: make(map[string]Member), Members: make(map[string]Member),
values: make(map[types.Object]Value), values: make(map[types.Object]Value),
Object: types.NewPackage("testmain", "testmain", nil), Object: types.NewPackage("testmain", "testmain"),
} }
// Build package's init function. // Build package's init function.