diff options
Diffstat (limited to 'src/cmd/internal/obj/go.go')
-rw-r--r-- | src/cmd/internal/obj/go.go | 64 |
1 files changed, 4 insertions, 60 deletions
diff --git a/src/cmd/internal/obj/go.go b/src/cmd/internal/obj/go.go index 3d6ba85ba1..24ed07f94d 100644 --- a/src/cmd/internal/obj/go.go +++ b/src/cmd/internal/obj/go.go @@ -6,16 +6,16 @@ package obj import ( "fmt" - "math" "os" "strings" ) // go-specific code shared across loaders (5l, 6l, 8l). -var Framepointer_enabled int - -var Fieldtrack_enabled int +var ( + Framepointer_enabled int + Fieldtrack_enabled int +) // Toolchain experiments. // 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) { p.As = ANOP p.Scond = 0 @@ -76,53 +67,6 @@ func Nocache(p *Prog) { 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 { buf := "X" for i := range exper { |