summaryrefslogtreecommitdiff
path: root/libgo/go/reflect
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2018-08-29 00:20:25 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2018-08-29 00:20:25 +0000
commit347462bfeecb8db177df72dc5b3c6f2eb263c452 (patch)
tree258b35cc7e9d07a9c277d1923316c1720f93d862 /libgo/go/reflect
parentd16c446e0b24e78a5025cf88531d7967615eefd6 (diff)
compiler, runtime: remove hmap field from maptypes
This is the gofrontend version of https://golang.org/cl/91796. This is part of that CL, just the compiler change and required runtime changes, in preparation for updating libgo to 1.11. Relevant part of original CL description: The hmap field in the maptype is only used by the runtime to check the sizes of the hmap structure created by the compiler and runtime agree. Comments are already present about the hmap structure definitions in the compiler and runtime needing to be in sync. Reviewed-on: https://go-review.googlesource.com/130976 From-SVN: r263941
Diffstat (limited to 'libgo/go/reflect')
-rw-r--r--libgo/go/reflect/type.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/libgo/go/reflect/type.go b/libgo/go/reflect/type.go
index 07fe4d001c0..bbbef9107c2 100644
--- a/libgo/go/reflect/type.go
+++ b/libgo/go/reflect/type.go
@@ -351,7 +351,6 @@ type mapType struct {
key *rtype // map key type
elem *rtype // map element (value) type
bucket *rtype // internal bucket structure
- hmap *rtype // internal map header
keysize uint8 // size of key slot
indirectkey uint8 // store ptr to key instead of key itself
valuesize uint8 // size of value slot