Skip to content

Commit c758e54

Browse files
committed
cmd/callgraph: make vta use internal version of CHA
That version is faster and uses less memory. Change-Id: I1839aa672fab25833da2ffa2dfcb079db67dd922 Reviewed-on: https://go-review.googlesource.com/c/tools/+/610537 Reviewed-by: Alan Donovan <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 94b564c commit c758e54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/callgraph/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ func doCallgraph(dir, gopath, algo, format string, tests bool, args []string) er
226226
// NB: RTA gives us Reachable and RuntimeTypes too.
227227

228228
case "vta":
229-
cg = vta.CallGraph(ssautil.AllFunctions(prog), cha.CallGraph(prog))
229+
cg = vta.CallGraph(ssautil.AllFunctions(prog), nil)
230230

231231
default:
232232
return fmt.Errorf("unknown algorithm: %s", algo)

0 commit comments

Comments
 (0)