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 <bradfitz@golang.org>
This commit is contained in:
Tim Henderson 2016-07-20 11:51:44 -04:00 committed by Brad Fitzpatrick
parent 5dbb806c12
commit 1634796cc3
2 changed files with 4 additions and 4 deletions

View File

@ -2227,13 +2227,13 @@ func (b *builder) buildFuncDecl(pkg *Package, decl *ast.FuncDecl) {
b.buildFunction(fn) 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. // 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. // need only build a single package.
// //
// BuildAll is idempotent and thread-safe. // Build is idempotent and thread-safe.
// //
func (prog *Program) Build() { func (prog *Program) Build() {
var wg sync.WaitGroup var wg sync.WaitGroup

View File

@ -21,7 +21,7 @@ import (
// loaded from source. An SSA package is created for each transitively // loaded from source. An SSA package is created for each transitively
// error-free package of lprog. // 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. // on the result.
// //
// mode controls diagnostics and checking during SSA construction. // mode controls diagnostics and checking during SSA construction.