mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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/20086 Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
e197f467d5
commit
9ace455e78
5 changed files with 5 additions and 0 deletions
|
|
@ -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) {
|
||||||
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\"")
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
// 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"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
// 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"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
// 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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue