]> Cypherpunks repositories - gostls13.git/commit
cmd/9g: use nopout in excise
authorRuss Cox <rsc@golang.org>
Thu, 29 Jan 2015 01:44:55 +0000 (20:44 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 30 Jan 2015 02:49:52 +0000 (02:49 +0000)
commit1d0664ef0d4f7c4efda19cb75aff2768072d84ed
tree874b11f81a169df5d727c0edb478e0c7713e611c
parent925861f3068a397cec0b04154e11114bf3e3ab1e
cmd/9g: use nopout in excise

In addition to duplicating the logic, the old code was
clearing the line number, which led to missing source line
information in the -S output.

Also fix nopout, which was incomplete.

Change-Id: Ic2b596a2f9ec2fe85642ebe125cca8ef38c83085
Reviewed-on: https://go-review.googlesource.com/3512
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Dave Cheney <dave@cheney.net>
src/cmd/9g/gobj.c
src/cmd/9g/peep.c