From 8f3c8a33fad917abb45ef98b3a1cd34fe9715370 Mon Sep 17 00:00:00 2001 From: David Crawshaw Date: Thu, 25 Aug 2016 21:06:10 -0400 Subject: cmd/link: make DynlinkingGo a method This will allow it to depend on whether plugin.Open is a symbol to be linked in. Change-Id: Ie9aa4216f2510fe8b10bc4665c8b19622b7122ea Reviewed-on: https://go-review.googlesource.com/27819 Reviewed-by: Ian Lance Taylor Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot --- src/cmd/link/internal/ld/deadcode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd/link/internal/ld/deadcode.go') diff --git a/src/cmd/link/internal/ld/deadcode.go b/src/cmd/link/internal/ld/deadcode.go index 6fd5ee3cbb..27e5a19a7a 100644 --- a/src/cmd/link/internal/ld/deadcode.go +++ b/src/cmd/link/internal/ld/deadcode.go @@ -63,7 +63,7 @@ func deadcode(ctxt *Link) { methSym := Linkrlookup(ctxt, "reflect.Value.Method", 0) reflectSeen := false - if DynlinkingGo() { + if ctxt.DynlinkingGo() { // Exported methods may satisfy interfaces we don't know // about yet when dynamically linking. reflectSeen = true -- cgit v1.3-5-g9baa