]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/link: remove some unnecessary comments
authorMatthew Dempsky <mdempsky@google.com>
Mon, 17 Oct 2016 21:08:36 +0000 (14:08 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Mon, 17 Oct 2016 22:00:55 +0000 (22:00 +0000)
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 <iant@golang.org>
src/cmd/link/internal/ld/pcln.go

index b9cbbb2160ff2de60066f7813f158604f56e26cc..5a6c425f3eceb9b7410ed63df399a83cd4efab0e 100644 (file)
@@ -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 {