diff options
| author | Russ Cox <rsc@golang.org> | 2015-03-02 14:22:05 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2015-03-03 20:32:24 +0000 |
| commit | 175929b9fef1c694a589b593398910f7e6fbc85e (patch) | |
| tree | a127a72801d5bf82642954c7a87edbad831a210b /src/cmd/internal/obj/objfile.go | |
| parent | 1fdeb6b58a81a64659202d0a104cb61bdad44f0e (diff) | |
| download | go-175929b9fef1c694a589b593398910f7e6fbc85e.tar.xz | |
cmd/5g etc: mechanical cleanup
Run rsc.io/grind rev 796d0f2 on C->Go conversions.
This replaces various awkward := initializations with plain var declarations.
Checked bit-for-bit compatibility with toolstash + buildall.
Change-Id: I601101d8177894adb9b0e3fb55dfe0ed4f544716
Reviewed-on: https://go-review.googlesource.com/6517
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/cmd/internal/obj/objfile.go')
| -rw-r--r-- | src/cmd/internal/obj/objfile.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cmd/internal/obj/objfile.go b/src/cmd/internal/obj/objfile.go index 6e76a39c53..ef17d721f7 100644 --- a/src/cmd/internal/obj/objfile.go +++ b/src/cmd/internal/obj/objfile.go @@ -26,12 +26,12 @@ func Writeobjdirect(ctxt *Link, b *Biobuf) { // Build list of symbols, and assign instructions to lists. // Ignore ctxt->plist boundaries. There are no guarantees there, // and the C compilers and assemblers just use one big list. - text := (*LSym)(nil) + var text *LSym - curtext := (*LSym)(nil) - data := (*LSym)(nil) - etext := (*LSym)(nil) - edata := (*LSym)(nil) + var curtext *LSym + var data *LSym + var etext *LSym + var edata *LSym for pl := ctxt.Plist; pl != nil; pl = pl.Link { for p = pl.Firstpc; p != nil; p = plink { if ctxt.Debugasm != 0 && ctxt.Debugvlog != 0 { |
