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:
parent
5dbb806c12
commit
1634796cc3
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue