]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/internal/obj: remove Link.Debugdivmod
authorJosh Bleecher Snyder <josharian@gmail.com>
Wed, 12 Apr 2017 13:06:51 +0000 (06:06 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Wed, 12 Apr 2017 14:38:15 +0000 (14:38 +0000)
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: Cherry Zhang <cherryyz@google.com>
src/cmd/internal/obj/arm/obj5.go
src/cmd/internal/obj/link.go

index bf4ad0a69b27086b2d744791e51d0bf0ffdc9c07..cec7c212d4ef4748d91370dbeb36b7b4094cddc6 100644 (file)
@@ -537,7 +537,8 @@ func preprocess(ctxt *obj.Link, cursym *obj.LSym, newprog obj.ProgAlloc) {
                        if cursym.Text.From3.Offset&obj.NOSPLIT != 0 {
                                ctxt.Diag("cannot divide in NOSPLIT function")
                        }
-                       if ctxt.Debugdivmod {
+                       const debugdivmod = false
+                       if debugdivmod {
                                break
                        }
                        if p.From.Type != obj.TYPE_REG {
index ae67867e4bd06546ab045e223d9ccc427d17f969..0312408d9283f1a1f4e6d7d34171e56eda3229a5 100644 (file)
@@ -715,7 +715,6 @@ type Link struct {
        Arch          *LinkArch
        Debugasm      bool
        Debugvlog     bool
-       Debugdivmod   bool
        Debugpcln     string
        Flag_shared   bool
        Flag_dynlink  bool