Skip to content

Commit 090ec61

Browse files
cuiweixiegopherbot
authored andcommitted
cmd/asm: delete unused func newAddr
Change-Id: I62f38aa07e9c6e2f0947d23adc7a1b453277c790 Reviewed-on: https://go-review.googlesource.com/c/go/+/435942 TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Cherry Mui <[email protected]> Reviewed-by: Cherry Mui <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]>
1 parent 58093e8 commit 090ec61

File tree

1 file changed

+0
-7
lines changed
  • src/cmd/asm/internal/asm

1 file changed

+0
-7
lines changed

src/cmd/asm/internal/asm/asm.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -897,13 +897,6 @@ func (p *Parser) asmInstruction(op obj.As, cond string, a []obj.Addr) {
897897
p.append(prog, cond, true)
898898
}
899899

900-
// newAddr returns a new(Addr) initialized to x.
901-
func newAddr(x obj.Addr) *obj.Addr {
902-
p := new(obj.Addr)
903-
*p = x
904-
return p
905-
}
906-
907900
// symbolName returns the symbol name, or an error string if none if available.
908901
func symbolName(addr *obj.Addr) string {
909902
if addr.Sym != nil {

0 commit comments

Comments
 (0)