mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.debug] cmd/compile: rename dwarf.Var.Offset to StackOffset
After we track decomposition, offset could mean stack offset or offset in recomposed variable. Disambiguate. Change-Id: I4d810b8c0dcac7a4ec25ac1e52898f55477025df Reviewed-on: https://go-review.googlesource.com/50875 Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
This commit is contained in:
parent
ee392ac10c
commit
045f605ea1
3 changed files with 14 additions and 14 deletions
|
|
@ -358,10 +358,10 @@ func debuginfo(fnsym *obj.LSym, curfn interface{}) []dwarf.Scope {
|
|||
|
||||
typename := dwarf.InfoPrefix + gotype.Name[len("type."):]
|
||||
dwarfVars = append(dwarfVars, &dwarf.Var{
|
||||
Name: n.Sym.Name,
|
||||
Abbrev: abbrev,
|
||||
Offset: int32(offs),
|
||||
Type: Ctxt.Lookup(typename),
|
||||
Name: n.Sym.Name,
|
||||
Abbrev: abbrev,
|
||||
StackOffset: int32(offs),
|
||||
Type: Ctxt.Lookup(typename),
|
||||
})
|
||||
|
||||
var scope ScopeID
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue