mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd: collapse internal/obj/fmt.go into compile/internal/gc/fmt.go
The obj.Fmt* values are only used by gc/fmt.go, so just move them there. Also, add comments documenting the correspondance between FmtFoo names and their flag characters to make understanding the existing documentation slightly less confusing. While here, add a new FmtFlag named type to represent these values. Change-Id: I9631214b892557d094823f1ac575d0c43a84007b Reviewed-on: https://go-review.googlesource.com/20717 Run-TryBot: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
8e7072ca83
commit
63142027de
38 changed files with 284 additions and 307 deletions
|
|
@ -178,7 +178,7 @@ func bignodes() {
|
|||
*/
|
||||
func gmove(f *gc.Node, t *gc.Node) {
|
||||
if gc.Debug['M'] != 0 {
|
||||
fmt.Printf("gmove %v -> %v\n", gc.Nconv(f, obj.FmtLong), gc.Nconv(t, obj.FmtLong))
|
||||
fmt.Printf("gmove %v -> %v\n", gc.Nconv(f, gc.FmtLong), gc.Nconv(t, gc.FmtLong))
|
||||
}
|
||||
|
||||
ft := gc.Simsimtype(f.Type)
|
||||
|
|
@ -229,7 +229,7 @@ func gmove(f *gc.Node, t *gc.Node) {
|
|||
|
||||
switch uint32(ft)<<16 | uint32(tt) {
|
||||
default:
|
||||
gc.Fatalf("gmove %v -> %v", gc.Tconv(f.Type, obj.FmtLong), gc.Tconv(t.Type, obj.FmtLong))
|
||||
gc.Fatalf("gmove %v -> %v", gc.Tconv(f.Type, gc.FmtLong), gc.Tconv(t.Type, gc.FmtLong))
|
||||
|
||||
/*
|
||||
* integer copy and truncate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue