Commit 30ddffad authored by Josh Bleecher Snyder's avatar Josh Bleecher Snyder

cmd/internal/obj: remove Link.Debugdivmod

It is only used once and never written to.
Switch to a local constant instead.

Change-Id: Icdd84e47b81f0de44ad9ed56ab5f4f91df22e6b6
Reviewed-on: https://go-review.googlesource.com/40405
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarCherry Zhang <cherryyz@google.com>
parent eacfa592
...@@ -537,7 +537,8 @@ func preprocess(ctxt *obj.Link, cursym *obj.LSym, newprog obj.ProgAlloc) { ...@@ -537,7 +537,8 @@ func preprocess(ctxt *obj.Link, cursym *obj.LSym, newprog obj.ProgAlloc) {
if cursym.Text.From3.Offset&obj.NOSPLIT != 0 { if cursym.Text.From3.Offset&obj.NOSPLIT != 0 {
ctxt.Diag("cannot divide in NOSPLIT function") ctxt.Diag("cannot divide in NOSPLIT function")
} }
if ctxt.Debugdivmod { const debugdivmod = false
if debugdivmod {
break break
} }
if p.From.Type != obj.TYPE_REG { if p.From.Type != obj.TYPE_REG {
......
...@@ -715,7 +715,6 @@ type Link struct { ...@@ -715,7 +715,6 @@ type Link struct {
Arch *LinkArch Arch *LinkArch
Debugasm bool Debugasm bool
Debugvlog bool Debugvlog bool
Debugdivmod bool
Debugpcln string Debugpcln string
Flag_shared bool Flag_shared bool
Flag_dynlink bool Flag_dynlink bool
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment