go.go 342 B

12345678910111213141516
  1. // Copyright 2009 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package obj
  5. // go-specific code shared across loaders (5l, 6l, 8l).
  6. func Nopout(p *Prog) {
  7. p.As = ANOP
  8. p.Scond = 0
  9. p.From = Addr{}
  10. p.RestArgs = nil
  11. p.Reg = 0
  12. p.To = Addr{}
  13. }