]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: improve comment and signature of pcAlignPadLength
authorWANG Xuerui <git@xen0n.name>
Fri, 7 Apr 2023 18:06:18 +0000 (02:06 +0800)
committerEric Fang <eric.fang@arm.com>
Tue, 11 Apr 2023 00:30:00 +0000 (00:30 +0000)
commit58eaecbf9a9407e4556a2c6afae9186309d6b2fe
tree12fcab320ad3055dc15e20a12bf597bf66571153
parentf00c54146ca0d9663f16f8ef2ea87862dc936ce3
cmd/internal/obj/arm64: improve comment and signature of pcAlignPadLength

The function just calculates the number of needed padding bytes,
instead of actually carrying out the alignment operation. And it has
the context argument at the end of the argument list, while contexts
idiomatically come first. Indeed, this is the only case in
cmd/internal/obj where ctxt is not the only argument and does not come
first.

Fix those two nits; no functional change intended.

Suggested by Ian during review of CL 479815 (that introduces a copy of
this helper into the loong64 port).

Change-Id: Ieb221ead23282abe6e04804d537e1234c7ab21d0
Reviewed-on: https://go-review.googlesource.com/c/go/+/483155
Run-TryBot: Cherry Mui <cherryyz@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/cmd/internal/obj/arm64/asm7.go