aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/asm
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2023-04-17 16:50:00 -0400
committerGopher Robot <gobot@golang.org>2023-04-21 19:28:49 +0000
commit7843ca83e7c8229f4fdca22949428a2418f45138 (patch)
treeaf287142e7909423c1e4ea9873c21b15f60aa06b /src/cmd/asm
parent2668a190baa302a1fd7e22285cdb343af67530ad (diff)
downloadgo-7843ca83e7c8229f4fdca22949428a2418f45138.tar.xz
internal/abi, runtime, cmd: merge PCDATA_* and FUNCDATA_* consts into internal/abi
We also rename the constants related to unsafe-points: currently, they follow the same naming scheme as the PCDATA table indexes, but are not PCDATA table indexes. For #59670. Change-Id: I06529fecfae535be5fe7d9ac56c886b9106c74fd Reviewed-on: https://go-review.googlesource.com/c/go/+/485497 Run-TryBot: Austin Clements <austin@google.com> Reviewed-by: David Chase <drchase@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Austin Clements <austin@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/cmd/asm')
-rw-r--r--src/cmd/asm/internal/asm/asm.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/asm/internal/asm/asm.go b/src/cmd/asm/internal/asm/asm.go
index 4d0eeacc74..c04e25bb50 100644
--- a/src/cmd/asm/internal/asm/asm.go
+++ b/src/cmd/asm/internal/asm/asm.go
@@ -6,6 +6,7 @@ package asm
import (
"fmt"
+ "internal/abi"
"strconv"
"strings"
"text/scanner"
@@ -16,7 +17,6 @@ import (
"cmd/internal/obj"
"cmd/internal/obj/ppc64"
"cmd/internal/obj/x86"
- "cmd/internal/objabi"
"cmd/internal/sys"
)
@@ -169,7 +169,7 @@ func (p *Parser) asmText(operands [][]lex.Token) {
frameSize = -frameSize
}
op = op[1:]
- argSize := int64(objabi.ArgsSizeUnknown)
+ argSize := int64(abi.ArgsSizeUnknown)
if len(op) > 0 {
// There is an argument size. It must be a minus sign followed by a non-negative integer literal.
if len(op) != 2 || op[0].ScanToken != '-' || op[1].ScanToken != scanner.Int {