Commit 9ace455e authored by Matthew Dempsky's avatar Matthew Dempsky Committed by Keith Randall

cmd/compile/internal/ssa: cleanup godocs

Add a blank line before the "package ssa" lines so the "autogenerated
don't edit" comments don't end up in godoc output.

Change-Id: I82bf90d52d426ce1a8e21483fc8f47b3689259c7
Reviewed-on: https://go-review.googlesource.com/20086Reviewed-by: 's avatarKeith Randall <khr@golang.org>
parent e197f467
...@@ -75,6 +75,7 @@ func genOp() { ...@@ -75,6 +75,7 @@ func genOp() {
w := new(bytes.Buffer) w := new(bytes.Buffer)
fmt.Fprintf(w, "// autogenerated: do not edit!\n") fmt.Fprintf(w, "// autogenerated: do not edit!\n")
fmt.Fprintf(w, "// generated from gen/*Ops.go\n") fmt.Fprintf(w, "// generated from gen/*Ops.go\n")
fmt.Fprintln(w)
fmt.Fprintln(w, "package ssa") fmt.Fprintln(w, "package ssa")
fmt.Fprintln(w, "import \"cmd/internal/obj/x86\"") fmt.Fprintln(w, "import \"cmd/internal/obj/x86\"")
......
...@@ -140,6 +140,7 @@ func genRules(arch arch) { ...@@ -140,6 +140,7 @@ func genRules(arch arch) {
w := new(bytes.Buffer) w := new(bytes.Buffer)
fmt.Fprintf(w, "// autogenerated from gen/%s.rules: do not edit!\n", arch.name) fmt.Fprintf(w, "// autogenerated from gen/%s.rules: do not edit!\n", arch.name)
fmt.Fprintln(w, "// generated with: cd gen; go run *.go") fmt.Fprintln(w, "// generated with: cd gen; go run *.go")
fmt.Fprintln(w)
fmt.Fprintln(w, "package ssa") fmt.Fprintln(w, "package ssa")
if *genLog { if *genLog {
fmt.Fprintln(w, "import \"fmt\"") fmt.Fprintln(w, "import \"fmt\"")
......
// autogenerated: do not edit! // autogenerated: do not edit!
// generated from gen/*Ops.go // generated from gen/*Ops.go
package ssa package ssa
import "cmd/internal/obj/x86" import "cmd/internal/obj/x86"
......
// autogenerated from gen/AMD64.rules: do not edit! // autogenerated from gen/AMD64.rules: do not edit!
// generated with: cd gen; go run *.go // generated with: cd gen; go run *.go
package ssa package ssa
import "math" import "math"
......
// autogenerated from gen/generic.rules: do not edit! // autogenerated from gen/generic.rules: do not edit!
// generated with: cd gen; go run *.go // generated with: cd gen; go run *.go
package ssa package ssa
import "math" import "math"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment