• Josh Bleecher Snyder's avatar
    cmd/link: make Pciter more idiomatic · 6d64dd73
    Josh Bleecher Snyder authored
    Rename it to PCIter and convert it to use methods.
    
    Set pcscale once, during construction, to make call sites clearer.
    
    Change some ints to bools.
    
    Use a simple iteration termination condition,
    instead of the cap comparison from the c2go translation.
    
    Instead of requiring a Pcdata, which requires one caller
    to synthesize a fake Pcdata, just ask for a byte slice.
    
    Passes toolstash-check.
    
    Change-Id: I811da0e929cf4a806bd6d70357ccf2911cd0c737
    Reviewed-on: https://go-review.googlesource.com/c/go/+/171770
    Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
    6d64dd73
dwarf.go 69.8 KB