style(lint): drop duplicate rule code declaration
This commit is contained in:
+2
-4
@@ -11,12 +11,10 @@ import (
|
||||
"sourcedock.dev/petrbalvin/gasm-devkit/token"
|
||||
)
|
||||
|
||||
// CodeNonportableRegister flags R/E-prefixed amd64 register spellings.
|
||||
const CodeNonportableRegister = "nonportable-register-name"
|
||||
|
||||
// amd64WordNames are the canonical 64-bit register spellings of go tool asm:
|
||||
// the assembler has no RAX/EAX/RBX forms, and a file using them assembles
|
||||
// under gasm but fails under the toolchain it must ship with.
|
||||
// under gasm but fails under the toolchain it must ship with. The rule code
|
||||
// (CodeNonportableRegister) is declared in lint.go.
|
||||
var amd64WordNames = map[string]string{
|
||||
"AX": "AX", "BX": "BX", "CX": "CX", "DX": "DX",
|
||||
"SI": "SI", "DI": "DI", "BP": "BP", "SP": "SP",
|
||||
|
||||
Reference in New Issue
Block a user