mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/internal/obj: cleanups from C transition and delete dead code
Change-Id: Id1ecad2565edd5937a764dcf56b89263353f47c2 Reviewed-on: https://go-review.googlesource.com/8947 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
485f348979
commit
27067df9db
2 changed files with 20 additions and 76 deletions
|
|
@ -15,20 +15,20 @@
|
||||||
package obj
|
package obj
|
||||||
|
|
||||||
const (
|
const (
|
||||||
FmtWidth = 1
|
FmtWidth = 1 << iota
|
||||||
FmtLeft = FmtWidth << 1
|
FmtLeft
|
||||||
FmtPrec = FmtLeft << 1
|
FmtPrec
|
||||||
FmtSharp = FmtPrec << 1
|
FmtSharp
|
||||||
FmtSpace = FmtSharp << 1
|
FmtSpace
|
||||||
FmtSign = FmtSpace << 1
|
FmtSign
|
||||||
FmtApost = FmtSign << 1
|
FmtApost
|
||||||
FmtZero = FmtApost << 1
|
FmtZero
|
||||||
FmtUnsigned = FmtZero << 1
|
FmtUnsigned
|
||||||
FmtShort = FmtUnsigned << 1
|
FmtShort
|
||||||
FmtLong = FmtShort << 1
|
FmtLong
|
||||||
FmtVLong = FmtLong << 1
|
FmtVLong
|
||||||
FmtComma = FmtVLong << 1
|
FmtComma
|
||||||
FmtByte = FmtComma << 1
|
FmtByte
|
||||||
FmtLDouble = FmtByte << 1
|
FmtLDouble
|
||||||
FmtFlag = FmtLDouble << 1
|
FmtFlag
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -6,16 +6,16 @@ package obj
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"math"
|
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
// go-specific code shared across loaders (5l, 6l, 8l).
|
// go-specific code shared across loaders (5l, 6l, 8l).
|
||||||
|
|
||||||
var Framepointer_enabled int
|
var (
|
||||||
|
Framepointer_enabled int
|
||||||
var Fieldtrack_enabled int
|
Fieldtrack_enabled int
|
||||||
|
)
|
||||||
|
|
||||||
// Toolchain experiments.
|
// Toolchain experiments.
|
||||||
// These are controlled by the GOEXPERIMENT environment
|
// These are controlled by the GOEXPERIMENT environment
|
||||||
|
|
@ -51,15 +51,6 @@ func init() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// replace all "". with pkg.
|
|
||||||
func Expandpkg(t0 string, pkg string) string {
|
|
||||||
return strings.Replace(t0, `"".`, pkg+".", -1)
|
|
||||||
}
|
|
||||||
|
|
||||||
func double2ieee(ieee *uint64, f float64) {
|
|
||||||
*ieee = math.Float64bits(f)
|
|
||||||
}
|
|
||||||
|
|
||||||
func Nopout(p *Prog) {
|
func Nopout(p *Prog) {
|
||||||
p.As = ANOP
|
p.As = ANOP
|
||||||
p.Scond = 0
|
p.Scond = 0
|
||||||
|
|
@ -76,53 +67,6 @@ func Nocache(p *Prog) {
|
||||||
p.To.Class = 0
|
p.To.Class = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* bv.c
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* closure.c
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* const.c
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* cplx.c
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* dcl.c
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* esc.c
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* export.c
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* fmt.c
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* gen.c
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* init.c
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* inl.c
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* lex.c
|
|
||||||
*/
|
|
||||||
func Expstring() string {
|
func Expstring() string {
|
||||||
buf := "X"
|
buf := "X"
|
||||||
for i := range exper {
|
for i := range exper {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue