From 3c2e4ed8d31e65556e936bf394a47e644605d23d Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Thu, 1 Dec 2016 10:10:17 -0800 Subject: cmd/objdump: copy gosym.PCValue into internal package ... so we don't have to export gosym.PCValue. Change-Id: Ie8f196d5e5ab63e3e69d1d7b4bfbbf32b7b5e4f5 Reviewed-on: https://go-review.googlesource.com/33791 Run-TryBot: Keith Randall Reviewed-by: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- src/debug/gosym/pclntab.go | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/debug') diff --git a/src/debug/gosym/pclntab.go b/src/debug/gosym/pclntab.go index e94ed19d7d..ba1cf8b699 100644 --- a/src/debug/gosym/pclntab.go +++ b/src/debug/gosym/pclntab.go @@ -291,13 +291,6 @@ func (t *LineTable) step(p *[]byte, pc *uint64, val *int32, first bool) bool { return true } -// PCValue looks up the given PC in a pc value table. target is the -// offset of the pc from the entry point. -func PCValue(tab []byte, target uint64, quantum int) int { - t := LineTable{Data: tab, quantum: uint32(quantum)} - return int(t.pcvalue(0, 0, target)) -} - // pcvalue reports the value associated with the target pc. // off is the offset to the beginning of the pc-value table, // and entry is the start PC for the corresponding function. -- cgit v1.3-5-g9baa