mirror of https://github.com/golang/go.git
cmd/internal/dwarf: remove unused SymValue method
Change-Id: Ied42c2778899ce12cc256f0a124b77bf0e141aee Reviewed-on: https://go-review.googlesource.com/68471 Run-TryBot: Matthew Dempsky <mdempsky@google.com> Reviewed-by: David Crawshaw <crawshaw@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
5edfaa2cf8
commit
acdb44765d
|
|
@ -118,7 +118,6 @@ type Context interface {
|
|||
AddAddress(s Sym, t interface{}, ofs int64)
|
||||
AddSectionOffset(s Sym, size int, t interface{}, ofs int64)
|
||||
AddString(s Sym, v string)
|
||||
SymValue(s Sym) int64
|
||||
}
|
||||
|
||||
// AppendUleb128 appends v to b using DWARF's unsigned LEB128 encoding.
|
||||
|
|
|
|||
|
|
@ -443,9 +443,6 @@ func (c dwCtxt) AddString(s dwarf.Sym, v string) {
|
|||
ls.WriteString(c.Link, ls.Size, len(v), v)
|
||||
ls.WriteInt(c.Link, ls.Size, 1, 0)
|
||||
}
|
||||
func (c dwCtxt) SymValue(s dwarf.Sym) int64 {
|
||||
return 0
|
||||
}
|
||||
func (c dwCtxt) AddAddress(s dwarf.Sym, data interface{}, value int64) {
|
||||
ls := s.(*LSym)
|
||||
size := c.PtrSize()
|
||||
|
|
|
|||
|
|
@ -42,9 +42,6 @@ func (c dwctxt) AddBytes(s dwarf.Sym, b []byte) {
|
|||
func (c dwctxt) AddString(s dwarf.Sym, v string) {
|
||||
Addstring(s.(*sym.Symbol), v)
|
||||
}
|
||||
func (c dwctxt) SymValue(s dwarf.Sym) int64 {
|
||||
return s.(*sym.Symbol).Value
|
||||
}
|
||||
|
||||
func (c dwctxt) AddAddress(s dwarf.Sym, data interface{}, value int64) {
|
||||
if value != 0 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue