[dev.link] add compilation unit index to func

Not used yet, but add the compilation unit for a function to func.

Change-Id: I7c43fa9f1da044ca63bab030062519771b9f4418
Reviewed-on: https://go-review.googlesource.com/c/go/+/244547
Run-TryBot: Jeremy Faller <jeremy@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
Jeremy Faller 2020-07-23 15:15:26 -04:00
parent 89cf569a45
commit e4e1c6a7af
3 changed files with 42 additions and 14 deletions

View file

@ -804,9 +804,9 @@ type _func struct {
pcfile int32
pcln int32
npcdata int32
funcID funcID // set for certain special runtime functions
_ [2]int8 // unused
nfuncdata uint8 // must be last
cuIndex uint16 // TODO(jfaller): 16 bits is never enough, make this larger.
funcID funcID // set for certain special runtime functions
nfuncdata uint8 // must be last
}
// Pseudo-Func that is returned for PCs that occur in inlined code.