]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: better name for BloopWalk
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Wed, 10 Dec 2025 10:46:07 +0000 (17:46 +0700)
committerGopher Robot <gobot@golang.org>
Thu, 22 Jan 2026 15:30:05 +0000 (07:30 -0800)
Use bloop.Walk instead of BloopWalk for better naming.

Change-Id: I60fb7abf8cdab2c7641c69d1cc06c1d6bef1600b
Reviewed-on: https://go-review.googlesource.com/c/go/+/728960
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/bloop/bloop.go
src/cmd/compile/internal/gc/main.go

index 56fe9a424d60486d4f7cc9fe469ebe7f5561b705..7a376d292bb763e6069b0e63c17851ce0eac310d 100644 (file)
@@ -325,7 +325,7 @@ func (e editor) edit(n ir.Node) ir.Node {
        return n
 }
 
-// BloopWalk performs a walk on all functions in the package
+// Walk performs a walk on all functions in the package
 // if it imports testing and wrap the results of all qualified
 // statements in a runtime.KeepAlive intrinsic call. See package
 // doc for more details.
@@ -333,7 +333,7 @@ func (e editor) edit(n ir.Node) ir.Node {
 //     for b.Loop() {...}
 //
 // loop's body.
-func BloopWalk(pkg *ir.Package) {
+func Walk(pkg *ir.Package) {
        hasTesting := false
        for _, i := range pkg.Imports {
                if i.Path == "testing" {
index afa16508d1994e924e97d42d98263177aa403da9..66b7ca35b4172ca6b49d5ca02dbee89b8b38221a 100644 (file)
@@ -244,7 +244,7 @@ func Main(archInit func(*ssagen.ArchInfo)) {
        }
 
        // Apply bloop markings.
-       bloop.BloopWalk(typecheck.Target)
+       bloop.Walk(typecheck.Target)
 
        // Interleaved devirtualization and inlining.
        base.Timer.Start("fe", "devirtualize-and-inline")