Commit 1e093043 authored by Hiroshi Ioka's avatar Hiroshi Ioka Committed by Ian Lance Taylor

cmd/link: remove dead code

Change-Id: I8a54235c8b7bf1010f19d0d358cd4f76fc911d28
Reviewed-on: https://go-review.googlesource.com/59416Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent bce795fb
...@@ -188,8 +188,6 @@ func loadcgo(ctxt *Link, file string, pkg string, p string) { ...@@ -188,8 +188,6 @@ func loadcgo(ctxt *Link, file string, pkg string, p string) {
remote, q = remote[:i], remote[i+1:] remote, q = remote[:i], remote[i+1:]
} }
s = ctxt.Syms.Lookup(local, 0) s = ctxt.Syms.Lookup(local, 0)
if local != f[1] {
}
if s.Type == 0 || s.Type == SXREF || s.Type == SHOSTOBJ { if s.Type == 0 || s.Type == SXREF || s.Type == SHOSTOBJ {
s.Dynimplib = lib s.Dynimplib = lib
s.Extname = remote s.Extname = remote
...@@ -257,8 +255,6 @@ func loadcgo(ctxt *Link, file string, pkg string, p string) { ...@@ -257,8 +255,6 @@ func loadcgo(ctxt *Link, file string, pkg string, p string) {
} else { } else {
s.Attr |= AttrCgoExportDynamic s.Attr |= AttrCgoExportDynamic
} }
if local != f[1] {
}
continue continue
} }
......
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