• Matthew Dempsky's avatar
    cmd/compile: refactor symbol sorting logic · c3473c4f
    Matthew Dempsky authored
    This used to be duplicated in methcmp and siglt, because Sig used its
    own representation for Syms. Instead, just use Syms, and add a
    (*Sym).Less method that both methcmp and siglt can use.
    
    Also, prune some impossible cases purportedly related to blank
    methods: the Go spec disallows blank methods in interface method sets,
    and addmethod drops blank methods without actually recording them in
    the type's method set.
    
    Passes toolstash-check.
    
    Updates #24693.
    
    Change-Id: I24e981659b68504d71518160486989a82505f513
    Reviewed-on: https://go-review.googlesource.com/105936Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    Run-TryBot: Matthew Dempsky <mdempsky@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    c3473c4f
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...