Source file src/cmd/internal/obj/go.go

     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  
     5  package obj
     6  
     7  // go-specific code shared across loaders (5l, 6l, 8l).
     8  
     9  func Nopout(p *Prog) {
    10  	p.As = ANOP
    11  	p.Scond = 0
    12  	p.From = Addr{}
    13  	p.RestArgs = nil
    14  	p.Reg = 0
    15  	p.To = Addr{}
    16  }
    17  

View as plain text