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
1 changed files with 4 additions and 0 deletions

View File

@ -322,6 +322,10 @@ func (a *analysis) callEdge(caller *cgnode, site *callsite, calleeid nodeid) {
callee := obj.cgn
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))
}