cmd/internal/gc: add -d disablenil debug option to turn off nil checks

Change-Id: I18f2e2ee141ebb65a8579ee1e440cb9c2069ef86
Reviewed-on: https://go-review.googlesource.com/7626
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Minux Ma <minux@golang.org>
This commit is contained in:
Russ Cox 2015-03-08 18:46:28 -04:00
parent 13f9c8b08e
commit 01512b3edb
1 changed files with 4 additions and 4 deletions

View File

@ -43,10 +43,10 @@ var goroot string
var debugtab = []struct {
name string
val *int
}{struct {
name string
val *int
}{"nil", &Debug_checknil}}
}{
{"nil", &Debug_checknil},
{"disablenil", &Disable_checknil},
}
// Our own isdigit, isspace, isalpha, isalnum that take care
// of EOF and other out of range arguments.