func logDepMap(pinfo *build8.PkgInfo, deps []byte) error { w := pinfo.CreateLog("depmap") if _, err := w.Write(deps); err != nil { return err } return w.Close() }
func logDeps(pinfo *build8.PkgInfo, g *dagvis.Graph) error { bs, err := json.MarshalIndent(g.Nodes, "", " ") if err != nil { panic(err) } w := pinfo.CreateLog("deps") if _, err := w.Write(bs); err != nil { return err } return w.Close() }
func logIr(pinfo *build8.PkgInfo, b *builder) error { w := pinfo.CreateLog("ir") ir.PrintPkg(w, b.p) return w.Close() }