cmd/internal/obj: manual C->Go cleanups

Change-Id: I5964fc55157dc1df7be400dfa0df591d6163e25e
Reviewed-on: https://go-review.googlesource.com/9084
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
This commit is contained in:
Brad Fitzpatrick 2015-04-19 21:00:48 -07:00
parent 3f4de49d0a
commit a13cf8c104
6 changed files with 24 additions and 58 deletions

View file

@ -481,7 +481,7 @@ type Link struct {
type SymVer struct {
Name string
Version int
Version int // TODO: make int16 to match LSym.Version?
}
// LinkArch is the definition of a single architecture.
@ -527,13 +527,11 @@ type Plist struct {
*/
func Linknewplist(ctxt *Link) *Plist {
pl := new(Plist)
*pl = Plist{}
if ctxt.Plist == nil {
ctxt.Plist = pl
} else {
ctxt.Plast.Link = pl
}
ctxt.Plast = pl
return pl
}