Commit 90dbd975 authored by Russ Cox's avatar Russ Cox

cmd/internal/objfile: use golang.org/x/arch instead of rsc.io

Change-Id: I5348774ff01a5f0f706a1dba4aa9500661841f47
Reviewed-on: https://go-review.googlesource.com/14020Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 10efac87
...@@ -15,8 +15,8 @@ import ( ...@@ -15,8 +15,8 @@ import (
"strings" "strings"
"text/tabwriter" "text/tabwriter"
"cmd/internal/rsc.io/arm/armasm" "golang.org/x/arch/arm/armasm"
"cmd/internal/rsc.io/x86/x86asm" "golang.org/x/arch/x86/x86asm"
) )
// Disasm is a disassembler for a given File. // Disasm is a disassembler for a given File.
...@@ -195,7 +195,7 @@ func disasm_x86(code []byte, pc uint64, lookup lookupFunc, arch int) (string, in ...@@ -195,7 +195,7 @@ func disasm_x86(code []byte, pc uint64, lookup lookupFunc, arch int) (string, in
size = 1 size = 1
text = "?" text = "?"
} else { } else {
text = x86asm.Plan9Syntax(inst, pc, lookup) text = x86asm.GoSyntax(inst, pc, lookup)
} }
return text, size return text, size
} }
...@@ -228,7 +228,7 @@ func disasm_arm(code []byte, pc uint64, lookup lookupFunc) (string, int) { ...@@ -228,7 +228,7 @@ func disasm_arm(code []byte, pc uint64, lookup lookupFunc) (string, int) {
size = 4 size = 4
text = "?" text = "?"
} else { } else {
text = armasm.Plan9Syntax(inst, pc, lookup, textReader{code, pc}) text = armasm.GoSyntax(inst, pc, lookup, textReader{code, pc})
} }
return text, size return text, size
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment