diff options
author | Russ Cox <rsc@golang.org> | 2020-11-16 01:44:47 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2020-11-25 16:39:48 +0000 |
commit | eb3086e5a8958723ae696ea48d4cc7981c6779fa (patch) | |
tree | 7ef73c5df35fcb1ea6d1b812bd5783d578bd3595 /src/cmd/compile/internal/gc/main.go | |
parent | 3c240f5d17e4ad3ddd342645b63fe20ecbb7fcae (diff) | |
download | go-eb3086e5a8958723ae696ea48d4cc7981c6779fa.tar.gz go-eb3086e5a8958723ae696ea48d4cc7981c6779fa.zip |
[dev.regabi] cmd/compile: finish cleanup of Debug parsing
Now that the debug settings are in a struct, use struct tags to set
the usage messages and use reflection to populate debugtab,
much like we did for the Flag struct.
Change-Id: Id2ba30c30a9158c062527715a68bf4dd94679457
Reviewed-on: https://go-review.googlesource.com/c/go/+/272247
Trust: Russ Cox <rsc@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/cmd/compile/internal/gc/main.go')
-rw-r--r-- | src/cmd/compile/internal/gc/main.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/gc/main.go b/src/cmd/compile/internal/gc/main.go index 0d41f81a52..2794ba3694 100644 --- a/src/cmd/compile/internal/gc/main.go +++ b/src/cmd/compile/internal/gc/main.go @@ -10,7 +10,7 @@ import ( "bufio" "bytes" "cmd/compile/internal/logopt" - + "cmd/compile/internal/ssa" "cmd/compile/internal/types" "cmd/internal/bio" "cmd/internal/dwarf" @@ -112,6 +112,7 @@ func Main(archInit func(*Arch)) { // pseudo-package used for methods with anonymous receivers gopkg = types.NewPkg("go", "") + DebugSSA = ssa.PhaseOption ParseFlags() // Record flags that affect the build result. (And don't |