aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/runtime2.go
diff options
context:
space:
mode:
authorMichel Lespinasse <walken@google.com>2016-03-17 06:18:13 -0700
committerMichel Lespinasse <walken@google.com>2016-03-29 02:18:03 +0000
commitf00bbd5f818f0a6b5b2fcf15422ad7fc4594225f (patch)
treed9acbc080dad0f5fe9549e36638318141b714494 /src/runtime/runtime2.go
parent7043d2bb5e8275df308abe9a2367fb1622be0313 (diff)
downloadgo-f00bbd5f818f0a6b5b2fcf15422ad7fc4594225f.tar.xz
cmd/compile: emit itabs and itablinks
See #14874 This change tells the compiler to emit itab and itablink symbols in situations where they could be useful; however the compiled code does not actually make use of the new symbols yet. Change-Id: I0db3e6ec0cb1f3b7cebd4c60229e4a48372fe586 Reviewed-on: https://go-review.googlesource.com/20888 Reviewed-by: David Crawshaw <crawshaw@golang.org> Run-TryBot: Michel Lespinasse <walken@google.com>
Diffstat (limited to 'src/runtime/runtime2.go')
-rw-r--r--src/runtime/runtime2.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go
index a54dc552c1..e1b1c83453 100644
--- a/src/runtime/runtime2.go
+++ b/src/runtime/runtime2.go
@@ -577,6 +577,8 @@ type _func struct {
// layout of Itab known to compilers
// allocated in non-garbage-collected memory
+// Needs to be in sync with
+// ../cmd/compile/internal/gc/reflect.go:/^func.dumptypestructs.
type itab struct {
inter *interfacetype
_type *_type