commit | bca0b44629f1317cc177072560d9a1486620e48f | [log] [tgz] |
---|---|---|
author | David Chase <drchase@google.com> | Mon Aug 24 22:57:01 2020 -0400 |
committer | David Chase <drchase@google.com> | Tue Aug 25 14:51:49 2020 +0000 |
tree | 2749a812bf29fe17ab5cf952cb4dac7ccae5695a | |
parent | 02f445258c284f295d8648078d6cc15836670756 [diff] |
cmd/compile: also check package.function for GOSSAFUNC match Old behavior is still enabled because it doesn't hurt to leave it in and existing users of this feature (there are dozens of us!) will not be surprised. Adding this finer control allows users to avoid writing ssa.html where they can't, shouldn't, or just don't want to. Example, both ways: $ GOSSAFUNC="(*Reader).Reset" go test -c -o ./a compress/gzip dumped SSA to bytes/ssa.html dumped SSA to strings/ssa.html dumped SSA to bufio/ssa.html dumped SSA to compress/gzip/ssa.html $ GOSSAFUNC="compress/gzip.(*Reader).Reset" go test -c -o ./a compress/gzip dumped SSA to compress/gzip/ssa.html Updates #40919. Change-Id: I06b77c3c1d326372a32651570b5dd6e56dfb1d7f Reviewed-on: https://go-review.googlesource.com/c/go/+/250340 Run-TryBot: David Chase <drchase@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 3.0 Attributions license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://golang.org/dl/.
After downloading a binary release, visit https://golang.org/doc/install or load doc/install.html in your web browser for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://golang.org/doc/install/source or load doc/install-source.html in your web browser for source installation instructions.
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines: https://golang.org/doc/contribute.html
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://golang.org/wiki/Questions for a list of places to ask questions about the Go language.