// NewPkg creates a package with a particular path name. func NewPkg(path string) *Pkg { return &Pkg{ path: path, lib: link8.NewPkg(path), strPool: newStrPool(path), datPool: newDatPool(path), g: newGener(), } }
// NewPkg creates a package with a particular path name. func NewPkg(path string) *Pkg { ret := new(Pkg) ret.path = path ret.lib = link8.NewPkg(path) ret.strPool = newStrPool(path) ret.g = newGener() return ret }
// NewPkgObj creates a new package compile object func newLib(p string) *lib { ret := new(lib) ret.Pkg = link8.NewPkg(p) ret.symbols = make(map[string]*sym8.Symbol) return ret }