autopkg == localpkg, so it appears to be a remnant of earlier code.
Change-Id: I65b6c074535e877317cbf9f1f35e94890f0ebf14
Reviewed-on: https://go-review.googlesource.com/26662
Reviewed-by: Keith Randall <khr@golang.org>
var localpkg *Pkg // package being compiled
-var autopkg *Pkg // fake package for allocating auto variables
-
var importpkg *Pkg // package being imported
var itabpkg *Pkg // fake pkg for itab entries
localpkg = mkpkg("")
localpkg.Prefix = "\"\""
- autopkg = mkpkg("")
- autopkg.Prefix = "\"\""
// pseudo-package, for scoping
builtinpkg = mkpkg("go.builtin")
// namedAuto returns a new AUTO variable with the given name and type.
func (e *ssaExport) namedAuto(name string, typ ssa.Type) ssa.GCNode {
t := typ.(*Type)
- s := &Sym{Name: name, Pkg: autopkg}
+ s := &Sym{Name: name, Pkg: localpkg}
n := Nod(ONAME, nil, nil)
s.Def = n
s.Def.Used = true