aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/noder/reloc.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2021-06-28 22:41:50 -0700
committerMatthew Dempsky <mdempsky@google.com>2021-06-30 04:31:37 +0000
commitf503740ccf6302ed13c7722ea50c6880a17703fb (patch)
tree30f68c9fb92446cf5998aaba96895b21155006fb /src/cmd/compile/internal/noder/reloc.go
parent6a5f7e8498b7cd53bb5461fbf777aa83aea067a8 (diff)
downloadgo-f503740ccf6302ed13c7722ea50c6880a17703fb.tar.gz
go-f503740ccf6302ed13c7722ea50c6880a17703fb.zip
[dev.typeparams] cmd/compile: add derived-type dictionaries to unified IR
This CL updates the unified IR export data serialization to explicitly and separately record the derived types used by a declaration. The readers currently just use this data to construct types/IR the same as before, but eventually we can use it for emitting GC-shape dictionaries. Change-Id: I7d67ad9b3f1fbe69664bf19e056bc94f73507220 Reviewed-on: https://go-review.googlesource.com/c/go/+/331829 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com> Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com> Trust: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/cmd/compile/internal/noder/reloc.go')
-rw-r--r--src/cmd/compile/internal/noder/reloc.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/noder/reloc.go b/src/cmd/compile/internal/noder/reloc.go
index 961de49419..4eb6bcdb1c 100644
--- a/src/cmd/compile/internal/noder/reloc.go
+++ b/src/cmd/compile/internal/noder/reloc.go
@@ -34,6 +34,7 @@ const (
relocType
relocObj
relocObjExt
+ relocObjDict
relocBody
numRelocs = iota