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

go.tools/go/pointer: add TODO comment.

LGTM=gri
R=gri
CC=golang-codereviews
https://golang.org/cl/87810046
This commit is contained in:
Alan Donovan 2014-04-15 15:41:02 -04:00
parent 6ec40d9aac
commit 9531aca448

View File

@ -322,6 +322,10 @@ func (a *analysis) callEdge(caller *cgnode, site *callsite, calleeid nodeid) {
callee := obj.cgn callee := obj.cgn
if cg := a.result.CallGraph; cg != nil { if cg := a.result.CallGraph; cg != nil {
// TODO(adonovan): opt: I would expect duplicate edges
// (to wrappers) to arise due to the elimination of
// context information, but I haven't observed any.
// Understand this better.
callgraph.AddEdge(cg.CreateNode(caller.fn), site.instr, cg.CreateNode(callee.fn)) callgraph.AddEdge(cg.CreateNode(caller.fn), site.instr, cg.CreateNode(callee.fn))
} }