mirror of
https://github.com/golang/go
synced 2024-11-18 16:54:43 -07:00
go.tools/go/pointer: suppress logging by default
LGTM=crawshaw R=crawshaw CC=golang-codereviews https://golang.org/cl/102490043
This commit is contained in:
parent
1582053234
commit
f032426134
@ -31,7 +31,7 @@ const (
|
||||
debugHVN = false // enable assertions in HVN
|
||||
debugHVNVerbose = false // enable extra HVN logging
|
||||
debugHVNCrossCheck = false // run solver with/without HVN and compare (caveats below)
|
||||
debugTimers = true // show running time of each phase
|
||||
debugTimers = false // show running time of each phase
|
||||
)
|
||||
|
||||
// object.flags bitmask values.
|
||||
|
@ -160,7 +160,6 @@ package pointer
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
"log"
|
||||
"reflect"
|
||||
|
||||
"code.google.com/p/go.tools/container/intsets"
|
||||
@ -939,7 +938,9 @@ func (h *hvn) simplify() {
|
||||
}
|
||||
h.a.constraints = cc
|
||||
|
||||
log.Printf("#constraints: was %d, now %d\n", nbefore, len(h.a.constraints))
|
||||
if h.log != nil {
|
||||
fmt.Fprintf(h.log, "#constraints: was %d, now %d\n", nbefore, len(h.a.constraints))
|
||||
}
|
||||
}
|
||||
|
||||
// find returns the canonical onodeid for x.
|
||||
|
Loading…
Reference in New Issue
Block a user