]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/asm/internal/arch: unexport ParseARM64Suffix
authorTobias Klauser <tklauser@distanz.ch>
Fri, 6 Apr 2018 12:40:18 +0000 (14:40 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Fri, 6 Apr 2018 14:09:04 +0000 (14:09 +0000)
ParseARM64Suffix is not used outside cmd/asm/internal/arch.

Change-Id: I8e7782dce11cf8cd2fd08dd17e555ced8d87ba24
Reviewed-on: https://go-review.googlesource.com/105115
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/asm/internal/arch/arm64.go

index 0bbd7f98c739fa2c68a5bf5fe525d5c5112f1d80..af45f421e98a3b7f56acc3f3ec3cdd72fdb1531e 100644 (file)
@@ -85,7 +85,7 @@ func ARM64Suffix(prog *obj.Prog, cond string) bool {
        if cond == "" {
                return true
        }
-       bits, ok := ParseARM64Suffix(cond)
+       bits, ok := parseARM64Suffix(cond)
        if !ok {
                return false
        }
@@ -93,10 +93,10 @@ func ARM64Suffix(prog *obj.Prog, cond string) bool {
        return true
 }
 
-// ParseARM64Suffix parses the suffix attached to an ARM64 instruction.
+// parseARM64Suffix parses the suffix attached to an ARM64 instruction.
 // The input is a single string consisting of period-separated condition
 // codes, such as ".P.W". An initial period is ignored.
-func ParseARM64Suffix(cond string) (uint8, bool) {
+func parseARM64Suffix(cond string) (uint8, bool) {
        if cond == "" {
                return 0, true
        }