mirror of
https://github.com/golang/go
synced 2024-11-19 10:04:56 -07:00
cmd/5g etc: tweak import blocks
Remove blank lines and merge lone imports into blocks. Change-Id: Ib46dad584456909969f1ba3a2c7f5667abf336ae Reviewed-on: https://go-review.googlesource.com/6792 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Rob Pike <r@golang.org>
This commit is contained in:
parent
494e317fbf
commit
5a16d6fc34
@ -5,11 +5,11 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/gc"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"cmd/internal/obj/arm"
|
"cmd/internal/obj/arm"
|
||||||
"fmt"
|
"fmt"
|
||||||
)
|
)
|
||||||
import "cmd/internal/gc"
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* peep.c
|
* peep.c
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/gc"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"cmd/internal/obj/arm"
|
"cmd/internal/obj/arm"
|
||||||
)
|
)
|
||||||
import "cmd/internal/gc"
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* attempt to generate 64-bit
|
* attempt to generate 64-bit
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/gc"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"cmd/internal/obj/arm"
|
"cmd/internal/obj/arm"
|
||||||
)
|
)
|
||||||
import "cmd/internal/gc"
|
|
||||||
|
|
||||||
var thechar int = '5'
|
var thechar int = '5'
|
||||||
|
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/gc"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"cmd/internal/obj/arm"
|
"cmd/internal/obj/arm"
|
||||||
)
|
)
|
||||||
import "cmd/internal/gc"
|
|
||||||
|
|
||||||
func defframe(ptxt *obj.Prog) {
|
func defframe(ptxt *obj.Prog) {
|
||||||
var n *gc.Node
|
var n *gc.Node
|
||||||
|
@ -31,11 +31,11 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/gc"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"cmd/internal/obj/arm"
|
"cmd/internal/obj/arm"
|
||||||
"fmt"
|
"fmt"
|
||||||
)
|
)
|
||||||
import "cmd/internal/gc"
|
|
||||||
|
|
||||||
// TODO(rsc): Can make this bigger if we move
|
// TODO(rsc): Can make this bigger if we move
|
||||||
// the text segment up higher in 5l for all GOOS.
|
// the text segment up higher in 5l for all GOOS.
|
||||||
|
@ -31,11 +31,11 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/gc"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"cmd/internal/obj/arm"
|
"cmd/internal/obj/arm"
|
||||||
"fmt"
|
"fmt"
|
||||||
)
|
)
|
||||||
import "cmd/internal/gc"
|
|
||||||
|
|
||||||
var gactive uint32
|
var gactive uint32
|
||||||
|
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/gc"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"cmd/internal/obj/arm"
|
"cmd/internal/obj/arm"
|
||||||
)
|
)
|
||||||
import "cmd/internal/gc"
|
|
||||||
|
|
||||||
const (
|
const (
|
||||||
RightRdwr = gc.RightRead | gc.RightWrite
|
RightRdwr = gc.RightRead | gc.RightWrite
|
||||||
|
@ -31,11 +31,11 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/ld"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
)
|
)
|
||||||
import "cmd/internal/ld"
|
|
||||||
|
|
||||||
func needlib(name string) int {
|
func needlib(name string) int {
|
||||||
if name[0] == '\x00' {
|
if name[0] == '\x00' {
|
||||||
|
@ -31,11 +31,11 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/ld"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
)
|
)
|
||||||
import "cmd/internal/ld"
|
|
||||||
|
|
||||||
// Reading object files.
|
// Reading object files.
|
||||||
|
|
||||||
|
@ -5,11 +5,10 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/gc"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"cmd/internal/obj/x86"
|
"cmd/internal/obj/x86"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"cmd/internal/gc"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/gc"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"cmd/internal/obj/x86"
|
"cmd/internal/obj/x86"
|
||||||
)
|
)
|
||||||
import "cmd/internal/gc"
|
|
||||||
|
|
||||||
var thechar int = '6'
|
var thechar int = '6'
|
||||||
|
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/gc"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"cmd/internal/obj/x86"
|
"cmd/internal/obj/x86"
|
||||||
)
|
)
|
||||||
import "cmd/internal/gc"
|
|
||||||
|
|
||||||
func defframe(ptxt *obj.Prog) {
|
func defframe(ptxt *obj.Prog) {
|
||||||
var n *gc.Node
|
var n *gc.Node
|
||||||
|
@ -31,11 +31,11 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/gc"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"cmd/internal/obj/x86"
|
"cmd/internal/obj/x86"
|
||||||
"fmt"
|
"fmt"
|
||||||
)
|
)
|
||||||
import "cmd/internal/gc"
|
|
||||||
|
|
||||||
// TODO(rsc): Can make this bigger if we move
|
// TODO(rsc): Can make this bigger if we move
|
||||||
// the text segment up higher in 6l for all GOOS.
|
// the text segment up higher in 6l for all GOOS.
|
||||||
|
@ -31,11 +31,11 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/gc"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"cmd/internal/obj/x86"
|
"cmd/internal/obj/x86"
|
||||||
"fmt"
|
"fmt"
|
||||||
)
|
)
|
||||||
import "cmd/internal/gc"
|
|
||||||
|
|
||||||
var gactive uint32
|
var gactive uint32
|
||||||
|
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/gc"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"cmd/internal/obj/x86"
|
"cmd/internal/obj/x86"
|
||||||
)
|
)
|
||||||
import "cmd/internal/gc"
|
|
||||||
|
|
||||||
var (
|
var (
|
||||||
AX = RtoB(x86.REG_AX)
|
AX = RtoB(x86.REG_AX)
|
||||||
|
@ -31,10 +31,10 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/gc"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"cmd/internal/obj/x86"
|
"cmd/internal/obj/x86"
|
||||||
)
|
)
|
||||||
import "cmd/internal/gc"
|
|
||||||
|
|
||||||
const (
|
const (
|
||||||
NREGVAR = 32
|
NREGVAR = 32
|
||||||
|
@ -31,11 +31,11 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/ld"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
)
|
)
|
||||||
import "cmd/internal/ld"
|
|
||||||
|
|
||||||
func PADDR(x uint32) uint32 {
|
func PADDR(x uint32) uint32 {
|
||||||
return x &^ 0x80000000
|
return x &^ 0x80000000
|
||||||
|
@ -31,11 +31,11 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/ld"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
)
|
)
|
||||||
import "cmd/internal/ld"
|
|
||||||
|
|
||||||
// Reading object files.
|
// Reading object files.
|
||||||
|
|
||||||
|
@ -5,11 +5,11 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/gc"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"cmd/internal/obj/i386"
|
"cmd/internal/obj/i386"
|
||||||
"fmt"
|
"fmt"
|
||||||
)
|
)
|
||||||
import "cmd/internal/gc"
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* reg.c
|
* reg.c
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/gc"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"cmd/internal/obj/i386"
|
"cmd/internal/obj/i386"
|
||||||
)
|
)
|
||||||
import "cmd/internal/gc"
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* attempt to generate 64-bit
|
* attempt to generate 64-bit
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/gc"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"cmd/internal/obj/i386"
|
"cmd/internal/obj/i386"
|
||||||
)
|
)
|
||||||
import "cmd/internal/gc"
|
|
||||||
|
|
||||||
var thechar int = '8'
|
var thechar int = '8'
|
||||||
|
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/gc"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"cmd/internal/obj/i386"
|
"cmd/internal/obj/i386"
|
||||||
)
|
)
|
||||||
import "cmd/internal/gc"
|
|
||||||
|
|
||||||
func defframe(ptxt *obj.Prog) {
|
func defframe(ptxt *obj.Prog) {
|
||||||
var n *gc.Node
|
var n *gc.Node
|
||||||
|
@ -31,11 +31,11 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/gc"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"cmd/internal/obj/i386"
|
"cmd/internal/obj/i386"
|
||||||
"fmt"
|
"fmt"
|
||||||
)
|
)
|
||||||
import "cmd/internal/gc"
|
|
||||||
|
|
||||||
// TODO(rsc): Can make this bigger if we move
|
// TODO(rsc): Can make this bigger if we move
|
||||||
// the text segment up higher in 8l for all GOOS.
|
// the text segment up higher in 8l for all GOOS.
|
||||||
|
@ -31,11 +31,11 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/gc"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"cmd/internal/obj/i386"
|
"cmd/internal/obj/i386"
|
||||||
"fmt"
|
"fmt"
|
||||||
)
|
)
|
||||||
import "cmd/internal/gc"
|
|
||||||
|
|
||||||
const (
|
const (
|
||||||
REGEXT = 0
|
REGEXT = 0
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/gc"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"cmd/internal/obj/i386"
|
"cmd/internal/obj/i386"
|
||||||
)
|
)
|
||||||
import "cmd/internal/gc"
|
|
||||||
|
|
||||||
var (
|
var (
|
||||||
AX = RtoB(i386.REG_AX)
|
AX = RtoB(i386.REG_AX)
|
||||||
|
@ -31,11 +31,11 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/ld"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
)
|
)
|
||||||
import "cmd/internal/ld"
|
|
||||||
|
|
||||||
func needlib(name string) int {
|
func needlib(name string) int {
|
||||||
if name[0] == '\x00' {
|
if name[0] == '\x00' {
|
||||||
|
@ -31,11 +31,11 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/ld"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
)
|
)
|
||||||
import "cmd/internal/ld"
|
|
||||||
|
|
||||||
// Reading object files.
|
// Reading object files.
|
||||||
|
|
||||||
|
@ -5,11 +5,11 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/gc"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"cmd/internal/obj/ppc64"
|
"cmd/internal/obj/ppc64"
|
||||||
"fmt"
|
"fmt"
|
||||||
)
|
)
|
||||||
import "cmd/internal/gc"
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* peep.c
|
* peep.c
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/gc"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"cmd/internal/obj/ppc64"
|
"cmd/internal/obj/ppc64"
|
||||||
)
|
)
|
||||||
import "cmd/internal/gc"
|
|
||||||
|
|
||||||
var thechar int = '9'
|
var thechar int = '9'
|
||||||
|
|
||||||
|
@ -5,11 +5,11 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/gc"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"cmd/internal/obj/ppc64"
|
"cmd/internal/obj/ppc64"
|
||||||
"fmt"
|
"fmt"
|
||||||
)
|
)
|
||||||
import "cmd/internal/gc"
|
|
||||||
|
|
||||||
func defframe(ptxt *obj.Prog) {
|
func defframe(ptxt *obj.Prog) {
|
||||||
var n *gc.Node
|
var n *gc.Node
|
||||||
|
@ -31,11 +31,11 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/gc"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"cmd/internal/obj/ppc64"
|
"cmd/internal/obj/ppc64"
|
||||||
"fmt"
|
"fmt"
|
||||||
)
|
)
|
||||||
import "cmd/internal/gc"
|
|
||||||
|
|
||||||
// TODO(rsc): Can make this bigger if we move
|
// TODO(rsc): Can make this bigger if we move
|
||||||
// the text segment up higher in 6l for all GOOS.
|
// the text segment up higher in 6l for all GOOS.
|
||||||
|
@ -31,11 +31,11 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/gc"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"cmd/internal/obj/ppc64"
|
"cmd/internal/obj/ppc64"
|
||||||
"fmt"
|
"fmt"
|
||||||
)
|
)
|
||||||
import "cmd/internal/gc"
|
|
||||||
|
|
||||||
var gactive uint32
|
var gactive uint32
|
||||||
|
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/gc"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"cmd/internal/obj/ppc64"
|
"cmd/internal/obj/ppc64"
|
||||||
)
|
)
|
||||||
import "cmd/internal/gc"
|
|
||||||
|
|
||||||
const (
|
const (
|
||||||
LeftRdwr uint32 = gc.LeftRead | gc.LeftWrite
|
LeftRdwr uint32 = gc.LeftRead | gc.LeftWrite
|
||||||
|
@ -31,12 +31,12 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/ld"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
)
|
)
|
||||||
import "cmd/internal/ld"
|
|
||||||
|
|
||||||
func needlib(name string) int {
|
func needlib(name string) int {
|
||||||
if name[0] == '\x00' {
|
if name[0] == '\x00' {
|
||||||
|
@ -31,11 +31,11 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"cmd/internal/ld"
|
||||||
"cmd/internal/obj"
|
"cmd/internal/obj"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
)
|
)
|
||||||
import "cmd/internal/ld"
|
|
||||||
|
|
||||||
// Reading object files.
|
// Reading object files.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user