| commit | 980ab12ade53e70d037ab2ab475148b216d84a14 | [log] [tgz] |
|---|---|---|
| author | Matthew Dempsky <mdempsky@google.com> | Wed Apr 13 18:37:18 2016 -0700 |
| committer | Matthew Dempsky <mdempsky@google.com> | Thu Apr 14 02:10:35 2016 +0000 |
| tree | 4eadf4f84eec4bea99cae243cd14b5001714314f | |
| parent | ae9804595879eb07efd23b9c98eab46693573447 [diff] [blame] |
cmd/compile/internal/gc: change flags to bool where possible Some of the Debug[x] flags are actually boolean too, but not all, so they need to be handled separately. While here, change some obj.Flagstr and obj.Flagint64 calls to directly use flag.StringVar and flag.Int64Var instead. Change-Id: Iccedf6fed4328240ee2257f57fe6d66688f237c4 Reviewed-on: https://go-review.googlesource.com/22052 Reviewed-by: Michael Hudson-Doyle <michael.hudson@canonical.com>
diff --git a/src/cmd/compile/internal/gc/bexport.go b/src/cmd/compile/internal/gc/bexport.go index eef2e22..e5fa3c3 100644 --- a/src/cmd/compile/internal/gc/bexport.go +++ b/src/cmd/compile/internal/gc/bexport.go
@@ -261,7 +261,7 @@ } // write compiler-specific flags - p.bool(safemode != 0) + p.bool(safemode) if p.trace { p.tracef("\n") }