aboutsummaryrefslogtreecommitdiff
path: root/src/internal/pkgbits
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2022-07-22 23:33:30 -0700
committerMatthew Dempsky <mdempsky@google.com>2022-07-28 07:13:28 +0000
commit9b70178d58060764cbaedf3d4542bd67f9aafede (patch)
treed5ff314135b507a20b29028459f23bd576a296db /src/internal/pkgbits
parentfc72b7705d67f432fb6a570f84df9e8840eec226 (diff)
downloadgo-9b70178d58060764cbaedf3d4542bd67f9aafede.tar.xz
[dev.unified] cmd/compile: write RTTI into unified IR export data
This CL adds `rtype` methods for unified IR for writing/reading types that need to have their *runtime._type value available. For now, this just builds on the existing type writing/reading mechanics and calling reflectdata.TypePtrAt; but longer term, reading of derived types can be changed to use dictionary lookups instead. Change-Id: I6f803b84546fa7df2877a8a3bcbf2623e4b03449 Reviewed-on: https://go-review.googlesource.com/c/go/+/419456 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/internal/pkgbits')
-rw-r--r--src/internal/pkgbits/sync.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/internal/pkgbits/sync.go b/src/internal/pkgbits/sync.go
index 6a5999eb6b..54e478d932 100644
--- a/src/internal/pkgbits/sync.go
+++ b/src/internal/pkgbits/sync.go
@@ -112,4 +112,5 @@ const (
SyncOptLabel
SyncMultiExpr
+ SyncRType
)