all: move cmd/internal/xcoff to internal/xcoff

This commit moves cmd/internal/xcoff package to internal/xcoff because
it will be needed to add XCOFF support in go/internal/gccgoimporter.

Change-Id: Id12df0c438fb7db4a6a458fc1478480851bf7771
Reviewed-on: https://go-review.googlesource.com/c/152719
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Clément Chigot 2018-12-05 17:23:25 +01:00 committed by Ian Lance Taylor
parent 033d09493d
commit e256afff51
16 changed files with 12 additions and 11 deletions

View file

@ -37,9 +37,6 @@ go src=..
buildid buildid
testdata testdata
+ +
xcoff
testdata
+
gofmt gofmt
gofmt.go gofmt.go
gofmt_test.go gofmt_test.go
@ -157,6 +154,9 @@ go src=..
trace trace
testdata testdata
+ +
xcoff
testdata
+
io io
+ +
mime mime

View file

@ -9,7 +9,6 @@ package main
import ( import (
"bytes" "bytes"
"cmd/internal/xcoff"
"debug/dwarf" "debug/dwarf"
"debug/elf" "debug/elf"
"debug/macho" "debug/macho"
@ -21,6 +20,7 @@ import (
"go/ast" "go/ast"
"go/parser" "go/parser"
"go/token" "go/token"
"internal/xcoff"
"math" "math"
"os" "os"
"strconv" "strconv"

View file

@ -6,7 +6,6 @@ package main
import ( import (
"bytes" "bytes"
"cmd/internal/xcoff"
"debug/elf" "debug/elf"
"debug/macho" "debug/macho"
"debug/pe" "debug/pe"
@ -14,6 +13,7 @@ import (
"go/ast" "go/ast"
"go/printer" "go/printer"
"go/token" "go/token"
"internal/xcoff"
"io" "io"
"io/ioutil" "io/ioutil"
"os" "os"

View file

@ -1,13 +1,13 @@
package ssa_test package ssa_test
import ( import (
"cmd/internal/xcoff"
"debug/dwarf" "debug/dwarf"
"debug/elf" "debug/elf"
"debug/macho" "debug/macho"
"debug/pe" "debug/pe"
"fmt" "fmt"
"internal/testenv" "internal/testenv"
"internal/xcoff"
"io" "io"
"runtime" "runtime"
"testing" "testing"

View file

@ -65,7 +65,6 @@ var bootstrapDirs = []string{
"cmd/internal/obj/wasm", "cmd/internal/obj/wasm",
"cmd/internal/src", "cmd/internal/src",
"cmd/internal/sys", "cmd/internal/sys",
"cmd/internal/xcoff",
"cmd/link", "cmd/link",
"cmd/link/internal/amd64", "cmd/link/internal/amd64",
"cmd/link/internal/arm", "cmd/link/internal/arm",
@ -90,6 +89,7 @@ var bootstrapDirs = []string{
"debug/elf", "debug/elf",
"debug/macho", "debug/macho",
"debug/pe", "debug/pe",
"internal/xcoff",
"math/big", "math/big",
"math/bits", "math/bits",
"sort", "sort",

View file

@ -6,9 +6,9 @@ package buildid
import ( import (
"bytes" "bytes"
"cmd/internal/xcoff"
"debug/elf" "debug/elf"
"fmt" "fmt"
"internal/xcoff"
"io" "io"
"os" "os"
"strconv" "strconv"

View file

@ -7,9 +7,9 @@
package objfile package objfile
import ( import (
"cmd/internal/xcoff"
"debug/dwarf" "debug/dwarf"
"fmt" "fmt"
"internal/xcoff"
"io" "io"
"unicode" "unicode"
) )

View file

@ -9,10 +9,10 @@ import (
"cmd/internal/bio" "cmd/internal/bio"
"cmd/internal/objabi" "cmd/internal/objabi"
"cmd/internal/sys" "cmd/internal/sys"
"cmd/internal/xcoff"
"cmd/link/internal/sym" "cmd/link/internal/sym"
"errors" "errors"
"fmt" "fmt"
"internal/xcoff"
) )
// ldSection is an XCOFF section with its symbols. // ldSection is an XCOFF section with its symbols.

View file

@ -64,7 +64,7 @@ func TestNonGoExecs(t *testing.T) {
"debug/pe/testdata/gcc-386-mingw-exec", "debug/pe/testdata/gcc-386-mingw-exec",
"debug/plan9obj/testdata/amd64-plan9-exec", "debug/plan9obj/testdata/amd64-plan9-exec",
"debug/plan9obj/testdata/386-plan9-exec", "debug/plan9obj/testdata/386-plan9-exec",
"cmd/internal/xcoff/testdata/gcc-ppc64-aix-dwarf2-exec", "internal/xcoff/testdata/gcc-ppc64-aix-dwarf2-exec",
} }
for _, f := range testfiles { for _, f := range testfiles {
exepath := filepath.Join(runtime.GOROOT(), "src", f) exepath := filepath.Join(runtime.GOROOT(), "src", f)

View file

@ -273,6 +273,7 @@ var pkgDeps = map[string][]string{
"internal/goroot": {"L4", "OS"}, "internal/goroot": {"L4", "OS"},
"internal/singleflight": {"sync"}, "internal/singleflight": {"sync"},
"internal/trace": {"L4", "OS", "container/heap"}, "internal/trace": {"L4", "OS", "container/heap"},
"internal/xcoff": {"L4", "OS", "debug/dwarf"},
"math/big": {"L4"}, "math/big": {"L4"},
"mime": {"L4", "OS", "syscall", "internal/syscall/windows/registry"}, "mime": {"L4", "OS", "syscall", "internal/syscall/windows/registry"},
"mime/quotedprintable": {"L4"}, "mime/quotedprintable": {"L4"},