diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-07-16 06:54:42 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-07-16 06:54:42 +0000 |
commit | f4ca453c9530ff24478cae090c9979b97fdd7411 (patch) | |
tree | 0e8fda573576bb4181dba29d0e88380a8c38fafd /libgo/runtime/go-reflect-map.c | |
parent | 84a4a7d4b2fecf754bc0b7fce55b05912a054ef4 (diff) | |
download | ppe42-gcc-f4ca453c9530ff24478cae090c9979b97fdd7411.tar.gz ppe42-gcc-f4ca453c9530ff24478cae090c9979b97fdd7411.zip |
libgo: Update to Go 1.1.1.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200974 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/runtime/go-reflect-map.c')
-rw-r--r-- | libgo/runtime/go-reflect-map.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libgo/runtime/go-reflect-map.c b/libgo/runtime/go-reflect-map.c index 36975374916..1ae7c96adc0 100644 --- a/libgo/runtime/go-reflect-map.c +++ b/libgo/runtime/go-reflect-map.c @@ -238,3 +238,12 @@ makemap (const struct __go_map_type *t) __builtin_memcpy (ret, &map, sizeof (void *)); return (uintptr_t) ret; } + +extern _Bool ismapkey (const struct __go_type_descriptor *) + __asm__ (GOSYM_PREFIX "reflect.ismapkey"); + +_Bool +ismapkey (const struct __go_type_descriptor *typ) +{ + return typ != NULL && typ->__hashfn != __go_type_hash_error; +} |