mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd: extract obj's Biobuf code into new bio package
API could still be made more Go-ey. Updates #15165. Change-Id: I514ffceffa43c293ae5d7e5f1e9193fda0098865 Reviewed-on: https://go-review.googlesource.com/21644 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
b17b95301a
commit
4b7e36cdfe
21 changed files with 291 additions and 267 deletions
|
|
@ -30,7 +30,10 @@
|
|||
|
||||
package obj
|
||||
|
||||
import "cmd/internal/sys"
|
||||
import (
|
||||
"cmd/internal/bio"
|
||||
"cmd/internal/sys"
|
||||
)
|
||||
|
||||
// An Addr is an argument to an instruction.
|
||||
// The general forms and their encodings are:
|
||||
|
|
@ -626,7 +629,7 @@ type Link struct {
|
|||
Flag_shared int32
|
||||
Flag_dynlink bool
|
||||
Flag_optimize bool
|
||||
Bso *Biobuf
|
||||
Bso *bio.Buf
|
||||
Pathname string
|
||||
Goroot string
|
||||
Goroot_final string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue