From 1634796cc3a3ee4b3cc216d256b5614f74a43ef4 Mon Sep 17 00:00:00 2001 From: Tim Henderson Date: Wed, 20 Jul 2016 11:51:44 -0400 Subject: [PATCH] go/ssa: fix stale docs for CreateProgram and Build Both functions had documentation referring to BuildAll when the function is now called Build. Change-Id: I59cce397a0a72bf7fa36f9798e2b07bb6b1da726 Reviewed-on: https://go-review.googlesource.com/25084 Reviewed-by: Brad Fitzpatrick --- go/ssa/builder.go | 6 +++--- go/ssa/ssautil/load.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go/ssa/builder.go b/go/ssa/builder.go index 4707ebeb..e19da8f1 100644 --- a/go/ssa/builder.go +++ b/go/ssa/builder.go @@ -2227,13 +2227,13 @@ func (b *builder) buildFuncDecl(pkg *Package, decl *ast.FuncDecl) { b.buildFunction(fn) } -// BuildAll calls Package.Build() for each package in prog. +// Build calls Package.Build for each package in prog. // Building occurs in parallel unless the BuildSerially mode flag was set. // -// BuildAll is intended for whole-program analysis; a typical compiler +// Build is intended for whole-program analysis; a typical compiler // need only build a single package. // -// BuildAll is idempotent and thread-safe. +// Build is idempotent and thread-safe. // func (prog *Program) Build() { var wg sync.WaitGroup diff --git a/go/ssa/ssautil/load.go b/go/ssa/ssautil/load.go index 7c578386..5eb57a1a 100644 --- a/go/ssa/ssautil/load.go +++ b/go/ssa/ssautil/load.go @@ -21,7 +21,7 @@ import ( // loaded from source. An SSA package is created for each transitively // error-free package of lprog. // -// Code for bodies of functions is not built until BuildAll() is called +// Code for bodies of functions is not built until Build is called // on the result. // // mode controls diagnostics and checking during SSA construction.