]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/gc: remove OCMPIFACE and OCMPSTR
authorMatthew Dempsky <mdempsky@google.com>
Wed, 10 Oct 2018 23:47:47 +0000 (16:47 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 11 Oct 2018 21:18:33 +0000 (21:18 +0000)
commit28fbbf41119a75498cc5e81d06af5ca1ad0010c9
treec37e9e51b3030ff3b3f42b6e70caa8829d47ab52
parentf64fd66f24d5c19d26ac58c4027aa9398a935490
cmd/compile/internal/gc: remove OCMPIFACE and OCMPSTR

Interface and string comparisons don't need separate Ops any more than
struct or array comparisons do.

Removing them requires shuffling some code around in walk (and a
little in order), but overall allows simplifying things a bit.

Passes toolstash-check.

Change-Id: I084b8a6c089b768dc76d220379f4daed8a35db15
Reviewed-on: https://go-review.googlesource.com/c/141637
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/const.go
src/cmd/compile/internal/gc/fmt.go
src/cmd/compile/internal/gc/iexport.go
src/cmd/compile/internal/gc/iimport.go
src/cmd/compile/internal/gc/order.go
src/cmd/compile/internal/gc/syntax.go
src/cmd/compile/internal/gc/typecheck.go
src/cmd/compile/internal/gc/walk.go