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
testdata
+
xcoff
testdata
+
gofmt
gofmt.go
gofmt_test.go
@ -157,6 +154,9 @@ go src=..
trace
testdata
+
xcoff
testdata
+
io
+
mime

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -9,10 +9,10 @@ import (
"cmd/internal/bio"
"cmd/internal/objabi"
"cmd/internal/sys"
"cmd/internal/xcoff"
"cmd/link/internal/sym"
"errors"
"fmt"
"internal/xcoff"
)
// 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/plan9obj/testdata/amd64-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 {
exepath := filepath.Join(runtime.GOROOT(), "src", f)

View file

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