cmd/link: remove redundant switch stmt

Change-Id: I5c4f8dc1e174b3438ef4fb509fac78d6e1b292c9
Reviewed-on: https://go-review.googlesource.com/54791
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Avelino <t@avelino.xxx>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Hiroshi Ioka 2017-07-09 09:01:47 +09:00 committed by Ian Lance Taylor
parent b1fab09901
commit 342d25fc05
1 changed files with 2 additions and 5 deletions

View File

@ -1166,11 +1166,8 @@ func dosymtype(ctxt *Link) {
for _, s := range ctxt.Syms.Allsym {
// Create a new entry in the .init_array section that points to the
// library initializer function.
switch Buildmode {
case BuildmodeCArchive, BuildmodeCShared:
if s.Name == *flagEntrySymbol {
addinitarrdata(ctxt, s)
}
if s.Name == *flagEntrySymbol {
addinitarrdata(ctxt, s)
}
}
}