Skip to content

Commit

Permalink
cmd/internal/objfile: use golang.org/x/arch instead of rsc.io
Browse files Browse the repository at this point in the history
Change-Id: I5348774ff01a5f0f706a1dba4aa9500661841f47
Reviewed-on: https://go-review.googlesource.com/14020
Reviewed-by: Brad Fitzpatrick <[email protected]>
  • Loading branch information
rsc committed Aug 28, 2015
1 parent 10efac8 commit 90dbd97
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cmd/internal/objfile/disasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
"strings"
"text/tabwriter"

"cmd/internal/rsc.io/arm/armasm"
"cmd/internal/rsc.io/x86/x86asm"
"golang.org/x/arch/arm/armasm"
"golang.org/x/arch/x86/x86asm"
)

// Disasm is a disassembler for a given File.
Expand Down Expand Up @@ -195,7 +195,7 @@ func disasm_x86(code []byte, pc uint64, lookup lookupFunc, arch int) (string, in
size = 1
text = "?"
} else {
text = x86asm.Plan9Syntax(inst, pc, lookup)
text = x86asm.GoSyntax(inst, pc, lookup)
}
return text, size
}
Expand Down Expand Up @@ -228,7 +228,7 @@ func disasm_arm(code []byte, pc uint64, lookup lookupFunc) (string, int) {
size = 4
text = "?"
} else {
text = armasm.Plan9Syntax(inst, pc, lookup, textReader{code, pc})
text = armasm.GoSyntax(inst, pc, lookup, textReader{code, pc})
}
return text, size
}
Expand Down

0 comments on commit 90dbd97

Please sign in to comment.