mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/link: replace unrolled Cput loops with Cwrite/Cwritestring
Passes toolstash-check -all. Change-Id: I1c85a2c0390517f4e9cdbddddbf3c353edca65b3 Reviewed-on: https://go-review.googlesource.com/64051 Run-TryBot: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
165c15afa3
commit
f84a1db19f
8 changed files with 10 additions and 35 deletions
|
|
@ -829,10 +829,7 @@ func asmb(ctxt *ld.Link) {
|
|||
sym := ctxt.Syms.Lookup("pclntab", 0)
|
||||
if sym != nil {
|
||||
ld.Lcsize = int32(len(sym.P))
|
||||
for i := 0; int32(i) < ld.Lcsize; i++ {
|
||||
ld.Cput(sym.P[i])
|
||||
}
|
||||
|
||||
ld.Cwrite(sym.P)
|
||||
ld.Cflush()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue