runtime: remove _Kind constants

The duplication of _Kind and kind constants is a legacy of the
conversion from C.

Change-Id: I368b35a41f215cf91ac4b09dac59699edb414a0e
Reviewed-on: https://go-review.googlesource.com/15800
Reviewed-by: Minux Ma <minux@golang.org>
Run-TryBot: Minux Ma <minux@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Ian Lance Taylor 2015-10-12 16:01:51 -07:00
parent 29aaf679da
commit 2961cab965
3 changed files with 32 additions and 71 deletions

View file

@ -132,11 +132,11 @@ func BenchSetType(n int, x interface{}) {
var size uintptr
var p unsafe.Pointer
switch t.kind & kindMask {
case _KindPtr:
case kindPtr:
t = (*ptrtype)(unsafe.Pointer(t)).elem
size = t.size
p = e.data
case _KindSlice:
case kindSlice:
slice := *(*struct {
ptr unsafe.Pointer
len, cap uintptr