aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/base
diff options
context:
space:
mode:
authorCherry Zhang <cherryyz@google.com>2021-04-02 21:48:00 -0400
committerCherry Zhang <cherryyz@google.com>2021-04-05 17:22:26 +0000
commite617b2b0dd14faddad82599f31f64bce3ff2ca2f (patch)
treed293fac707f6b15149e7b407298ac63cbc10c8ae /src/cmd/compile/internal/base
parentdcf85b30ba422c50e6e96893a3ed930aea5b6b4a (diff)
downloadgo-e617b2b0dd14faddad82599f31f64bce3ff2ca2f.tar.gz
go-e617b2b0dd14faddad82599f31f64bce3ff2ca2f.zip
cmd/compile: add a debug flag to enable/disable open-coded defers
For debugging. Change-Id: I831947376569cd2285b713ad304329951adf60ab Reviewed-on: https://go-review.googlesource.com/c/go/+/307230 Trust: Cherry Zhang <cherryyz@google.com> Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Than McIntosh <thanm@google.com> Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/cmd/compile/internal/base')
-rw-r--r--src/cmd/compile/internal/base/debug.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/base/debug.go b/src/cmd/compile/internal/base/debug.go
index 7590dc1bfa..71712ab1a5 100644
--- a/src/cmd/compile/internal/base/debug.go
+++ b/src/cmd/compile/internal/base/debug.go
@@ -39,6 +39,7 @@ type DebugFlags struct {
Libfuzzer int `help:"enable coverage instrumentation for libfuzzer"`
LocationLists int `help:"print information about DWARF location list creation"`
Nil int `help:"print information about nil checks"`
+ NoOpenDefer int `help:"disable open-coded defers"`
PCTab string `help:"print named pc-value table"`
Panic int `help:"show all compiler panics"`
Slice int `help:"print information about slice compilation"`