mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile/internal: make function comments match function names
Change-Id: I2ebadb87a4f60487c8f720930a72bc5ef953d7cf Reviewed-on: https://go-review.googlesource.com/c/go/+/696695 Reviewed-by: Carlos Amedee <carlos@golang.org> Auto-Submit: Keith Randall <khr@golang.org> Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: Keith Randall <khr@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
de2d741667
commit
c7d8bda459
3 changed files with 3 additions and 3 deletions
|
|
@ -50,7 +50,7 @@ var cases = []testcase{
|
||||||
{"1", "", 0, []string{"for_nested.go"}},
|
{"1", "", 0, []string{"for_nested.go"}},
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestLoopVar checks that the GOEXPERIMENT and debug flags behave as expected.
|
// TestLoopVarGo1_21 checks that the GOEXPERIMENT and debug flags behave as expected.
|
||||||
func TestLoopVarGo1_21(t *testing.T) {
|
func TestLoopVarGo1_21(t *testing.T) {
|
||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "linux", "darwin":
|
case "linux", "darwin":
|
||||||
|
|
|
||||||
|
|
@ -158,7 +158,7 @@ func New(profileFile string) (*Profile, error) {
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// initializeIRGraph builds the IRGraph by visiting all the ir.Func in decl list
|
// createIRGraph builds the IRGraph by visiting all the ir.Func in decl list
|
||||||
// of a package.
|
// of a package.
|
||||||
func createIRGraph(namedEdgeMap pgo.NamedEdgeMap) *IRGraph {
|
func createIRGraph(namedEdgeMap pgo.NamedEdgeMap) *IRGraph {
|
||||||
g := &IRGraph{
|
g := &IRGraph{
|
||||||
|
|
|
||||||
|
|
@ -470,7 +470,7 @@ func opcodeMap(f *Func) map[Op]int {
|
||||||
return m
|
return m
|
||||||
}
|
}
|
||||||
|
|
||||||
// opcodeCounts checks that the number of opcodes listed in m agree with the
|
// checkOpcodeCounts checks that the number of opcodes listed in m agree with the
|
||||||
// number of opcodes that appear in the function.
|
// number of opcodes that appear in the function.
|
||||||
func checkOpcodeCounts(t *testing.T, f *Func, m map[Op]int) {
|
func checkOpcodeCounts(t *testing.T, f *Func, m map[Op]int) {
|
||||||
n := opcodeMap(f)
|
n := opcodeMap(f)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue