From e617b2b0dd14faddad82599f31f64bce3ff2ca2f Mon Sep 17 00:00:00 2001 From: Cherry Zhang Date: Fri, 2 Apr 2021 21:48:00 -0400 Subject: 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 Run-TryBot: Cherry Zhang TryBot-Result: Go Bot Reviewed-by: Than McIntosh Reviewed-by: Austin Clements --- src/cmd/compile/internal/base/debug.go | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cmd/compile/internal/base/debug.go') 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"` -- cgit v1.3