mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/internal/obj: convert Debug* Link fields into bools
Change-Id: I9ac274dbfe887675a7820d2f8f87b5887b1c9b0e Reviewed-on: https://go-review.googlesource.com/38383 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
236ef852be
commit
42a915c933
14 changed files with 25 additions and 23 deletions
|
|
@ -168,7 +168,7 @@ func preprocess(ctxt *obj.Link, cursym *obj.LSym) {
|
|||
* expand RET
|
||||
* expand BECOME pseudo
|
||||
*/
|
||||
if ctxt.Debugvlog != 0 {
|
||||
if ctxt.Debugvlog {
|
||||
ctxt.Logf("%5.2f noops\n", obj.Cputime())
|
||||
}
|
||||
|
||||
|
|
@ -340,7 +340,7 @@ func preprocess(ctxt *obj.Link, cursym *obj.LSym) {
|
|||
q.Spadj = +autosize
|
||||
} else if cursym.Text.Mark&LEAF == 0 {
|
||||
if cursym.Text.From3.Offset&obj.NOSPLIT != 0 {
|
||||
if ctxt.Debugvlog != 0 {
|
||||
if ctxt.Debugvlog {
|
||||
ctxt.Logf("save suppressed in: %s\n", cursym.Name)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue