diff options
| author | nikita-vanyasin <nikita.vanyasin@gmail.com> | 2019-04-13 16:42:48 +0300 |
|---|---|---|
| committer | Josh Bleecher Snyder <josharian@gmail.com> | 2019-10-26 05:40:14 +0000 |
| commit | c3e8a20a65c731eac6434a129cdaf5ed02325612 (patch) | |
| tree | 0ef3016352f2de3ddd40f6ef465f1d84a1a83389 /src/cmd/link/internal/ld/deadcode.go | |
| parent | 65a1e242094fe39c1349c7b7b19d64413b696a8c (diff) | |
| download | go-c3e8a20a65c731eac6434a129cdaf5ed02325612.tar.xz | |
cmd/link/internal: eliminate all ld.Cputime() usages
Also a similar 'elapsed' function and its usages were deleted.
Fixes #19865.
Change-Id: Ib125365e69cf2eda60de64fa74290c8c7d1fd65a
Reviewed-on: https://go-review.googlesource.com/c/go/+/171730
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Diffstat (limited to 'src/cmd/link/internal/ld/deadcode.go')
| -rw-r--r-- | src/cmd/link/internal/ld/deadcode.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/cmd/link/internal/ld/deadcode.go b/src/cmd/link/internal/ld/deadcode.go index c880c0da01..0bc6cc457a 100644 --- a/src/cmd/link/internal/ld/deadcode.go +++ b/src/cmd/link/internal/ld/deadcode.go @@ -46,10 +46,6 @@ import ( // // Any unreached text symbols are removed from ctxt.Textp. func deadcode(ctxt *Link) { - if ctxt.Debugvlog != 0 { - ctxt.Logf("%5.2f deadcode\n", Cputime()) - } - d := &deadcodepass{ ctxt: ctxt, ifaceMethod: make(map[methodsig]bool), |
