mirror of
https://github.com/golang/go
synced 2024-11-19 08:34:39 -07:00
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
This commit is contained in:
parent
c0fca138d1
commit
81674f3135
@ -2049,8 +2049,8 @@ dwarfemitdebugsections(void)
|
||||
newattr(die, DW_AT_go_kind, DW_CLS_CONSTANT, KindUintptr, 0);
|
||||
|
||||
// Needed by the prettyprinter code for interface inspection.
|
||||
defgotype(lookup_or_diag("type.runtime.rtype"));
|
||||
defgotype(lookup_or_diag("type.runtime.interfaceType"));
|
||||
defgotype(lookup_or_diag("type.runtime._type"));
|
||||
defgotype(lookup_or_diag("type.runtime.interfacetype"));
|
||||
defgotype(lookup_or_diag("type.runtime.itab"));
|
||||
|
||||
genasmsym(defdwsymb);
|
||||
|
@ -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
|
||||
}
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user