diff options
author | Matthew Dempsky <mdempsky@google.com> | 2016-03-01 10:58:06 -0800 |
---|---|---|
committer | Keith Randall <khr@golang.org> | 2016-03-01 19:20:24 +0000 |
commit | 9ace455e78d7c00925f35877e432dfa3768f13f3 (patch) | |
tree | 93e98b0f67bd3386ea8d95a3c626af97d2303ed4 | |
parent | e197f467d51318305439610d44af0e20dae7062f (diff) | |
download | go-git-9ace455e78d7c00925f35877e432dfa3768f13f3.tar.gz |
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>
-rw-r--r-- | src/cmd/compile/internal/ssa/gen/main.go | 1 | ||||
-rw-r--r-- | src/cmd/compile/internal/ssa/gen/rulegen.go | 1 | ||||
-rw-r--r-- | src/cmd/compile/internal/ssa/opGen.go | 1 | ||||
-rw-r--r-- | src/cmd/compile/internal/ssa/rewriteAMD64.go | 1 | ||||
-rw-r--r-- | src/cmd/compile/internal/ssa/rewritegeneric.go | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/ssa/gen/main.go b/src/cmd/compile/internal/ssa/gen/main.go index 5ba8483f61..660511e46c 100644 --- a/src/cmd/compile/internal/ssa/gen/main.go +++ b/src/cmd/compile/internal/ssa/gen/main.go @@ -75,6 +75,7 @@ func genOp() { w := new(bytes.Buffer) fmt.Fprintf(w, "// autogenerated: do not edit!\n") fmt.Fprintf(w, "// generated from gen/*Ops.go\n") + fmt.Fprintln(w) fmt.Fprintln(w, "package ssa") fmt.Fprintln(w, "import \"cmd/internal/obj/x86\"") diff --git a/src/cmd/compile/internal/ssa/gen/rulegen.go b/src/cmd/compile/internal/ssa/gen/rulegen.go index c2da3e6489..e3e3efac41 100644 --- a/src/cmd/compile/internal/ssa/gen/rulegen.go +++ b/src/cmd/compile/internal/ssa/gen/rulegen.go @@ -140,6 +140,7 @@ func genRules(arch arch) { w := new(bytes.Buffer) 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) fmt.Fprintln(w, "package ssa") if *genLog { fmt.Fprintln(w, "import \"fmt\"") diff --git a/src/cmd/compile/internal/ssa/opGen.go b/src/cmd/compile/internal/ssa/opGen.go index e912b20c2b..a48766ffc0 100644 --- a/src/cmd/compile/internal/ssa/opGen.go +++ b/src/cmd/compile/internal/ssa/opGen.go @@ -1,5 +1,6 @@ // autogenerated: do not edit! // generated from gen/*Ops.go + package ssa import "cmd/internal/obj/x86" diff --git a/src/cmd/compile/internal/ssa/rewriteAMD64.go b/src/cmd/compile/internal/ssa/rewriteAMD64.go index 61a617808a..83fc437747 100644 --- a/src/cmd/compile/internal/ssa/rewriteAMD64.go +++ b/src/cmd/compile/internal/ssa/rewriteAMD64.go @@ -1,5 +1,6 @@ // autogenerated from gen/AMD64.rules: do not edit! // generated with: cd gen; go run *.go + package ssa import "math" diff --git a/src/cmd/compile/internal/ssa/rewritegeneric.go b/src/cmd/compile/internal/ssa/rewritegeneric.go index 0c71b2c884..ad2abc5601 100644 --- a/src/cmd/compile/internal/ssa/rewritegeneric.go +++ b/src/cmd/compile/internal/ssa/rewritegeneric.go @@ -1,5 +1,6 @@ // autogenerated from gen/generic.rules: do not edit! // generated with: cd gen; go run *.go + package ssa import "math" |