// makeFunction creates the shared function object (aka contour) for // function fn and returns a 'func' value node that points to it. // func (a *analysis) makeFunction(fn *ssa.Function) nodeid { obj := a.makeFunctionObject(fn) a.funcObj[fn] = obj var comment string if a.log != nil { comment = fn.String() } id := a.addOneNode(fn.Type(), comment, nil) a.addressOf(id, obj) return id }