From 99b7984de7b02494b4f0d67c9ff42a2367148489 Mon Sep 17 00:00:00 2001 From: Matthew Dempsky Date: Mon, 17 Oct 2016 14:08:36 -0700 Subject: [PATCH] cmd/link: remove some unnecessary comments The comments about pcln functions are obsolete since those functions now live in cmd/internal/obj. The copyright header is redundant with the existing one at the top of the file. Change-Id: I568fd3d259253a0d8eb3b0a157d008df1b5de106 Reviewed-on: https://go-review.googlesource.com/31315 Reviewed-by: Ian Lance Taylor --- src/cmd/link/internal/ld/pcln.go | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/src/cmd/link/internal/ld/pcln.go b/src/cmd/link/internal/ld/pcln.go index b9cbbb2160..5a6c425f3e 100644 --- a/src/cmd/link/internal/ld/pcln.go +++ b/src/cmd/link/internal/ld/pcln.go @@ -11,33 +11,6 @@ import ( "path/filepath" ) -// funcpctab writes to dst a pc-value table mapping the code in func to the values -// returned by valfunc parameterized by arg. The invocation of valfunc to update the -// current value is, for each p, -// -// val = valfunc(func, val, p, 0, arg); -// record val as value at p->pc; -// val = valfunc(func, val, p, 1, arg); -// -// where func is the function, val is the current value, p is the instruction being -// considered, and arg can be used to further parameterize valfunc. - -// pctofileline computes either the file number (arg == 0) -// or the line number (arg == 1) to use at p. -// Because p->lineno applies to p, phase == 0 (before p) -// takes care of the update. - -// pctospadj computes the sp adjustment in effect. -// It is oldval plus any adjustment made by p itself. -// The adjustment by p takes effect only after p, so we -// apply the change during phase == 1. - -// pctopcdata computes the pcdata value in effect at p. -// A PCDATA instruction sets the value in effect at future -// non-PCDATA instructions. -// Since PCDATA instructions have no width in the final code, -// it does not matter which phase we use for the update. - // iteration over encoded pcdata tables. func getvarint(pp *[]byte) uint32 { @@ -96,10 +69,6 @@ func pciterinit(ctxt *Link, it *Pciter, d *Pcdata) { pciternext(it) } -// Copyright 2013 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - func addvarint(d *Pcdata, val uint32) { n := int32(0) for v := val; v >= 0x80; v >>= 7 { -- 2.48.1