]> Cypherpunks.ru repositories - gostls13.git/commitdiff
runtime: rename _func.entryoff to entryOff
authorMichael Pratt <mpratt@google.com>
Tue, 6 Sep 2022 22:03:30 +0000 (18:03 -0400)
committerGopher Robot <gobot@golang.org>
Wed, 7 Sep 2022 15:42:49 +0000 (15:42 +0000)
To match _func.nameOff.

Change-Id: I75e71cadaa0f7ca8844d1b49950673797b227074
Reviewed-on: https://go-review.googlesource.com/c/go/+/428658
Run-TryBot: Michael Pratt <mpratt@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Michael Pratt <mpratt@google.com>

src/runtime/runtime2.go
src/runtime/symtab.go

index 7fdf1634404ca6200e6de87c3c59d5dbae11ad15..1c620bbfbeeab84b395d86525f35596e75b3979c 100644 (file)
@@ -858,7 +858,7 @@ const (
 // Keep in sync with linker (../cmd/link/internal/ld/pcln.go:/pclntab)
 // and with package debug/gosym and with symtab.go in package runtime.
 type _func struct {
-       entryoff uint32 // start pc, as offset from moduledata.text/pcHeader.textStart
+       entryOff uint32 // start pc, as offset from moduledata.text/pcHeader.textStart
        nameOff  int32  // function name, as index into moduledata.funcnametab.
 
        args        int32  // in/out args size
index b7bf7d77a965be494bda554298176f71eb848b8d..79ca5cfc44093ba52c15b955cfb8e3836cd9128f 100644 (file)
@@ -810,12 +810,12 @@ func (f funcInfo) _Func() *Func {
 
 // isInlined reports whether f should be re-interpreted as a *funcinl.
 func (f *_func) isInlined() bool {
-       return f.entryoff == ^uint32(0) // see comment for funcinl.ones
+       return f.entryOff == ^uint32(0) // see comment for funcinl.ones
 }
 
 // entry returns the entry PC for f.
 func (f funcInfo) entry() uintptr {
-       return f.datap.textAddr(f.entryoff)
+       return f.datap.textAddr(f.entryOff)
 }
 
 // findfunc looks up function metadata for a PC.