]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: accept string debug flags
authorAustin Clements <austin@google.com>
Wed, 22 Feb 2017 21:13:06 +0000 (16:13 -0500)
committerAustin Clements <austin@google.com>
Fri, 3 Mar 2017 15:50:49 +0000 (15:50 +0000)
commit8eb14e9de5018afbcf7eefd7b4bce7a200d0ce3f
tree04e8d953a11fa7f7735c0674f37980ec60dd6f03
parent5bfd1ef036f2cd549f78a0acd3e2666b42bcc07d
cmd/compile: accept string debug flags

The compiler's -d flag accepts string-valued flags, but currently only
for SSA debug flags. Extend it to support string values for other
flags. This also makes the syntax somewhat more sane so flag=value and
flag:value now both accept integers and strings.

Change-Id: Idd144d8479a430970cc1688f824bffe0a56ed2df
Reviewed-on: https://go-review.googlesource.com/37345
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/gc/main.go
src/cmd/compile/internal/ssa/compile.go