diff options
| author | Than McIntosh <thanm@google.com> | 2022-03-07 10:32:51 -0500 |
|---|---|---|
| committer | Than McIntosh <thanm@google.com> | 2022-09-27 10:30:53 +0000 |
| commit | e6d9057e2f3442b133afe7e37bec72bb9b780b04 (patch) | |
| tree | 15ac9b503567f7d7151238f8f9a62235c8d00794 /src/runtime | |
| parent | 072c7d4969862c84430cc2daef20a8f7f3ba78a2 (diff) | |
| download | go-e6d9057e2f3442b133afe7e37bec72bb9b780b04.tar.xz | |
cmd/compile: add coverage fixup mode
Adds a -coveragecfg=<configfile> command line option to the compiler
to help support a cooperative "tool and compiler" mode for coverage
instrumentation. In this mode the cmd/cover tool generates most of the
counter instrumentation via source-to-source rewriting, but the
compiler fixes up the result if passed the "-coveragecfg" option. The
fixups include:
- reclassifying counter variables (special storage class)
- marking meta-data variables are read-only
- adding in an init call to do registation
Updates #51430.
Change-Id: Iead72b85209725ee044542374465f118a3ee72e0
Reviewed-on: https://go-review.googlesource.com/c/go/+/395895
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/runtime')
0 files changed, 0 insertions, 0 deletions
