]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: suppress export of Note field within exported bodies
authorDavid Chase <drchase@google.com>
Thu, 31 Dec 2015 00:47:36 +0000 (19:47 -0500)
committerDavid Chase <drchase@google.com>
Tue, 5 Jan 2016 15:42:12 +0000 (15:42 +0000)
commitab5d2bf92f04ea56c560536e03787a9a111eac25
tree7b651d364403cb2ed4d111fba82e283137e2662c
parentd731315cdbf9b2e6e1a70343a39f7c39b8eb99bb
cmd/compile: suppress export of Note field within exported bodies

Added a format option to inhibit output of .Note field in
printing, and enabled that option during export.
Added test.

Fixes #13777.

Change-Id: I739f9785eb040f2fecbeb96d5a9ceb8c1ca0f772
Reviewed-on: https://go-review.googlesource.com/18217
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: David Chase <drchase@google.com>
src/cmd/compile/internal/gc/export.go
src/cmd/compile/internal/gc/fmt.go
src/cmd/internal/obj/fmt.go
test/fixedbugs/issue13777.dir/burnin.go [new file with mode: 0644]
test/fixedbugs/issue13777.dir/main.go [new file with mode: 0644]
test/fixedbugs/issue13777.go [new file with mode: 0644]