1
0
mirror of https://github.com/golang/go synced 2024-09-29 13:34:30 -06:00

cmd/compile: simplify exportsym debug message

No need to disambiguate if we're exporting or reexporting, because
it's obvious from the output.

Change-Id: I59053d34dc6f8b29e20749c7b03c3cb4f4d641ff
Reviewed-on: https://go-review.googlesource.com/104236
Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
Matthew Dempsky 2018-04-02 16:15:25 -07:00
parent ce1252a610
commit fac7d5dd95

View File

@ -36,11 +36,7 @@ func exportsym(n *Node) {
n.Sym.SetOnExportList(true)
if Debug['E'] != 0 {
if n.Sym.Pkg == localpkg {
fmt.Printf("export symbol %v\n", n.Sym)
} else {
fmt.Printf("reexport name %v\n", n.Sym)
}
fmt.Printf("export symbol %v\n", n.Sym)
}
exportlist = append(exportlist, n)