Commit acdb4476 authored by Matthew Dempsky's avatar Matthew Dempsky

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: default avatarDavid Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 5edfaa2c
...@@ -118,7 +118,6 @@ type Context interface { ...@@ -118,7 +118,6 @@ type Context interface {
AddAddress(s Sym, t interface{}, ofs int64) AddAddress(s Sym, t interface{}, ofs int64)
AddSectionOffset(s Sym, size int, t interface{}, ofs int64) AddSectionOffset(s Sym, size int, t interface{}, ofs int64)
AddString(s Sym, v string) AddString(s Sym, v string)
SymValue(s Sym) int64
} }
// AppendUleb128 appends v to b using DWARF's unsigned LEB128 encoding. // AppendUleb128 appends v to b using DWARF's unsigned LEB128 encoding.
......
...@@ -443,9 +443,6 @@ func (c dwCtxt) AddString(s dwarf.Sym, v string) { ...@@ -443,9 +443,6 @@ func (c dwCtxt) AddString(s dwarf.Sym, v string) {
ls.WriteString(c.Link, ls.Size, len(v), v) ls.WriteString(c.Link, ls.Size, len(v), v)
ls.WriteInt(c.Link, ls.Size, 1, 0) 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) { func (c dwCtxt) AddAddress(s dwarf.Sym, data interface{}, value int64) {
ls := s.(*LSym) ls := s.(*LSym)
size := c.PtrSize() size := c.PtrSize()
......
...@@ -42,9 +42,6 @@ func (c dwctxt) AddBytes(s dwarf.Sym, b []byte) { ...@@ -42,9 +42,6 @@ func (c dwctxt) AddBytes(s dwarf.Sym, b []byte) {
func (c dwctxt) AddString(s dwarf.Sym, v string) { func (c dwctxt) AddString(s dwarf.Sym, v string) {
Addstring(s.(*sym.Symbol), v) 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) { func (c dwctxt) AddAddress(s dwarf.Sym, data interface{}, value int64) {
if value != 0 { if value != 0 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment