mirror of
https://github.com/golang/go
synced 2024-11-07 09:06:20 -07:00
cmd/compile/internal/gc: remove toolstash hacks
Change-Id: I221f77075a25e934e20b41307758a89c19169e05 Reviewed-on: https://go-review.googlesource.com/c/145201 Reviewed-by: Robert Griesemer <gri@golang.org> Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
2dda040f19
commit
bc4a10d16c
@ -1102,7 +1102,6 @@ func (w *exportWriter) stmt(n *Node) {
|
||||
case OGOTO, OLABEL:
|
||||
w.op(op)
|
||||
w.pos(n.Pos)
|
||||
w.op(ONAME) // TODO(mdempsky): Remove toolstash hack.
|
||||
w.string(n.Sym.Name)
|
||||
|
||||
default:
|
||||
|
@ -1044,9 +1044,6 @@ func (r *importReader) node() *Node {
|
||||
|
||||
case OGOTO, OLABEL:
|
||||
n := nodl(r.pos(), op, nil, nil)
|
||||
if op := r.op(); op != ONAME { // TODO(mdempsky): Remove toolstash check.
|
||||
Fatalf("got %v, want ONAME", op)
|
||||
}
|
||||
n.Sym = lookup(r.string())
|
||||
return n
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user