mirror of
https://github.com/golang/go
synced 2024-11-02 13:42:29 +00:00
cmd/asm: delete unused func newAddr
Change-Id: I62f38aa07e9c6e2f0947d23adc7a1b453277c790 Reviewed-on: https://go-review.googlesource.com/c/go/+/435942 TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Cherry Mui <cherryyz@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com>
This commit is contained in:
parent
58093e8e2b
commit
090ec611df
1 changed files with 0 additions and 7 deletions
|
@ -897,13 +897,6 @@ func (p *Parser) asmInstruction(op obj.As, cond string, a []obj.Addr) {
|
|||
p.append(prog, cond, true)
|
||||
}
|
||||
|
||||
// newAddr returns a new(Addr) initialized to x.
|
||||
func newAddr(x obj.Addr) *obj.Addr {
|
||||
p := new(obj.Addr)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
// symbolName returns the symbol name, or an error string if none if available.
|
||||
func symbolName(addr *obj.Addr) string {
|
||||
if addr.Sym != nil {
|
||||
|
|
Loading…
Reference in a new issue