@@ -419,9 +419,9 @@ func canMergeLoad(target, load *Value) bool {
419
419
return true
420
420
}
421
421
422
- // isSameCall reports whether sym is the same as the given named symbol.
423
- func isSameCall (sym interface {} , name string ) bool {
424
- fn := sym .(* AuxCall ).Fn
422
+ // isSameCall reports whether aux is the same as the given named symbol.
423
+ func isSameCall (aux Aux , name string ) bool {
424
+ fn := aux .(* AuxCall ).Fn
425
425
return fn != nil && fn .String () == name
426
426
}
427
427
@@ -1960,7 +1960,7 @@ func needRaceCleanup(sym *AuxCall, v *Value) bool {
1960
1960
}
1961
1961
1962
1962
// symIsRO reports whether sym is a read-only global.
1963
- func symIsRO (sym interface {} ) bool {
1963
+ func symIsRO (sym Sym ) bool {
1964
1964
lsym := sym .(* obj.LSym )
1965
1965
return lsym .Type == objabi .SRODATA && len (lsym .R ) == 0
1966
1966
}
@@ -2051,7 +2051,7 @@ func fixedSym(f *Func, sym Sym, off int64) Sym {
2051
2051
}
2052
2052
2053
2053
// read8 reads one byte from the read-only global sym at offset off.
2054
- func read8 (sym interface {} , off int64 ) uint8 {
2054
+ func read8 (sym Sym , off int64 ) uint8 {
2055
2055
lsym := sym .(* obj.LSym )
2056
2056
if off >= int64 (len (lsym .P )) || off < 0 {
2057
2057
// Invalid index into the global sym.
@@ -2064,7 +2064,7 @@ func read8(sym interface{}, off int64) uint8 {
2064
2064
}
2065
2065
2066
2066
// read16 reads two bytes from the read-only global sym at offset off.
2067
- func read16 (sym interface {} , off int64 , byteorder binary.ByteOrder ) uint16 {
2067
+ func read16 (sym Sym , off int64 , byteorder binary.ByteOrder ) uint16 {
2068
2068
lsym := sym .(* obj.LSym )
2069
2069
// lsym.P is written lazily.
2070
2070
// Bytes requested after the end of lsym.P are 0.
@@ -2078,7 +2078,7 @@ func read16(sym interface{}, off int64, byteorder binary.ByteOrder) uint16 {
2078
2078
}
2079
2079
2080
2080
// read32 reads four bytes from the read-only global sym at offset off.
2081
- func read32 (sym interface {} , off int64 , byteorder binary.ByteOrder ) uint32 {
2081
+ func read32 (sym Sym , off int64 , byteorder binary.ByteOrder ) uint32 {
2082
2082
lsym := sym .(* obj.LSym )
2083
2083
var src []byte
2084
2084
if 0 <= off && off < int64 (len (lsym .P )) {
@@ -2090,7 +2090,7 @@ func read32(sym interface{}, off int64, byteorder binary.ByteOrder) uint32 {
2090
2090
}
2091
2091
2092
2092
// read64 reads eight bytes from the read-only global sym at offset off.
2093
- func read64 (sym interface {} , off int64 , byteorder binary.ByteOrder ) uint64 {
2093
+ func read64 (sym Sym , off int64 , byteorder binary.ByteOrder ) uint64 {
2094
2094
lsym := sym .(* obj.LSym )
2095
2095
var src []byte
2096
2096
if 0 <= off && off < int64 (len (lsym .P )) {
0 commit comments