1
0
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:
Matthew Dempsky 2018-10-26 20:20:03 -07:00
parent 2dda040f19
commit bc4a10d16c
2 changed files with 0 additions and 4 deletions

View File

@ -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:

View File

@ -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