diff options
| author | Dmitriy Vyukov <dvyukov@google.com> | 2014-08-05 22:32:24 +0400 |
|---|---|---|
| committer | Dmitriy Vyukov <dvyukov@google.com> | 2014-08-05 22:32:24 +0400 |
| commit | 81674f3135663b9817f7724a33bb0baa567d3e57 (patch) | |
| tree | 3e66ce70b04ec1f50b707a1c552c6ba7fc70683c /src/pkg/runtime | |
| parent | c0fca138d17910d307b6bd4171c3125640e60591 (diff) | |
| download | go-81674f3135663b9817f7724a33bb0baa567d3e57.tar.xz | |
runtime: remove type.go
We have an autogenerated version in zruntime_defs.
I am not sure what are the consequences as gdb never printed any values for me.
But it looks unnecessary to manually duplicate it.
LGTM=rsc
R=golang-codereviews, rsc
CC=golang-codereviews, iant, khr
https://golang.org/cl/115660043
Diffstat (limited to 'src/pkg/runtime')
| -rw-r--r-- | src/pkg/runtime/type.go | 56 | ||||
| -rw-r--r-- | src/pkg/runtime/type.h | 9 |
2 files changed, 2 insertions, 63 deletions
diff --git a/src/pkg/runtime/type.go b/src/pkg/runtime/type.go deleted file mode 100644 index 4e610dbc2f..0000000000 --- a/src/pkg/runtime/type.go +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2009 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -/* - * Runtime type representation. - * This file exists only to provide types that 6l can turn into - * DWARF information for use by gdb. Nothing else uses these. - * They should match the same types in ../reflect/type.go. - * For comments see ../reflect/type.go. - */ - -package runtime - -import "unsafe" - -type rtype struct { - size uintptr - hash uint32 - _ uint8 - align uint8 - fieldAlign uint8 - kind uint8 - alg unsafe.Pointer - gc [2]unsafe.Pointer - string *string - *uncommonType - ptrToThis *rtype - zero unsafe.Pointer -} - -type _method struct { - name *string - pkgPath *string - mtyp *rtype - typ *rtype - ifn unsafe.Pointer - tfn unsafe.Pointer -} - -type uncommonType struct { - name *string - pkgPath *string - methods []_method -} - -type _imethod struct { - name *string - pkgPath *string - typ *rtype -} - -type interfaceType struct { - rtype - methods []_imethod -} diff --git a/src/pkg/runtime/type.h b/src/pkg/runtime/type.h index 8de0ccba2c..2eda291aed 100644 --- a/src/pkg/runtime/type.h +++ b/src/pkg/runtime/type.h @@ -2,11 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -/* - * Runtime type representation; master is type.go - * - * The Type*s here correspond 1-1 to type.go's *rtype. - */ +// Runtime type representation. typedef struct Type Type; typedef struct UncommonType UncommonType; @@ -16,8 +12,7 @@ typedef struct IMethod IMethod; typedef struct SliceType SliceType; typedef struct FuncType FuncType; -// Needs to be in sync with ../../cmd/ld/decodesym.c:/^commonsize, -// pkg/reflect/type.go:/type anf type.go:/rtype +// Needs to be in sync with ../../cmd/ld/decodesym.c:/^commonsize and pkg/reflect/type.go:/type. struct Type { uintptr size; |
