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
|
debugHVN = false // enable assertions in HVN
|
||||||
debugHVNVerbose = false // enable extra HVN logging
|
debugHVNVerbose = false // enable extra HVN logging
|
||||||
debugHVNCrossCheck = false // run solver with/without HVN and compare (caveats below)
|
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.
|
// object.flags bitmask values.
|
||||||
|
|
|
||||||
|
|
@ -160,7 +160,6 @@ package pointer
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"log"
|
|
||||||
"reflect"
|
"reflect"
|
||||||
|
|
||||||
"code.google.com/p/go.tools/container/intsets"
|
"code.google.com/p/go.tools/container/intsets"
|
||||||
|
|
@ -939,7 +938,9 @@ func (h *hvn) simplify() {
|
||||||
}
|
}
|
||||||
h.a.constraints = cc
|
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.
|
// find returns the canonical onodeid for x.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue