From bab191042b92b125f5fac83dc8f0201160b79ecd Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Mon, 20 Feb 2017 17:49:56 -0500 Subject: cmd/internal/obj, runtime: update funcdata comments The comments in cmd/internal/obj/funcdata.go are identical to the comments in runtime/funcdata.h, but the majority of the definitions they refer to don't apply to Go sources and have been stripped out of funcdata.go. Remove these stale comments from funcdata.go and clean up the references to other copies of the PCDATA and FUNCDATA indexes. Change-Id: I5d6e49a6e586cc9aecd7c3ce1567679f2a605884 Reviewed-on: https://go-review.googlesource.com/37330 Reviewed-by: Keith Randall --- src/runtime/funcdata.h | 4 +--- src/runtime/symtab.go | 4 +++- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/runtime') diff --git a/src/runtime/funcdata.h b/src/runtime/funcdata.h index 82992e221b..c77e7b094f 100644 --- a/src/runtime/funcdata.h +++ b/src/runtime/funcdata.h @@ -6,9 +6,7 @@ // in Go binaries. It is included by assembly sources, so it must // be written using #defines. // -// The Go compiler also #includes this file, for now. -// -// symtab.go also contains a copy of these constants. +// These must agree with symtab.go and ../cmd/internal/obj/funcdata.go. #define PCDATA_StackMapIndex 0 diff --git a/src/runtime/symtab.go b/src/runtime/symtab.go index 377d970f09..ad8a8a1b8d 100644 --- a/src/runtime/symtab.go +++ b/src/runtime/symtab.go @@ -168,7 +168,9 @@ func (f *Func) raw() *_func { return (*_func)(unsafe.Pointer(f)) } -// funcdata.h +// PCDATA and FUNCDATA table indexes. +// +// See funcdata.h and ../cmd/internal/obj/funcdata.go. const ( _PCDATA_StackMapIndex = 0 _FUNCDATA_ArgsPointerMaps = 0 -- cgit v1.3