cover integers, floats, bool, array, complex
This commit is contained in:
@@ -7,6 +7,22 @@ type IFoo interface {
|
|||||||
type Foo struct {
|
type Foo struct {
|
||||||
nexy *Foo
|
nexy *Foo
|
||||||
data map[string]uint64
|
data map[string]uint64
|
||||||
|
f32 float32
|
||||||
|
f64 float64
|
||||||
|
u8 uint8
|
||||||
|
u16 uint16
|
||||||
|
u32 uint32
|
||||||
|
u64 uint64
|
||||||
|
u uint
|
||||||
|
i8 int8
|
||||||
|
i16 int16
|
||||||
|
i32 int32
|
||||||
|
i64 int64
|
||||||
|
i int
|
||||||
|
b bool
|
||||||
|
arr [10]int
|
||||||
|
c64 complex64
|
||||||
|
c128 complex128
|
||||||
}
|
}
|
||||||
|
|
||||||
func (Foo) Foo(a []int, b string) int {
|
func (Foo) Foo(a []int, b string) int {
|
||||||
|
|||||||
@@ -141,8 +141,7 @@ func (b diBuilder) createType(ty Type, pos token.Position) DIType {
|
|||||||
})
|
})
|
||||||
return &aDIType{typ}
|
return &aDIType{typ}
|
||||||
} else {
|
} else {
|
||||||
encoding = llvm.DW_ATE_unsigned
|
panic(fmt.Errorf("can't create debug info of basic type: %v, %T", ty.RawType(), ty.RawType()))
|
||||||
panic("todo: basic type")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
typ = b.di.CreateBasicType(llvm.DIBasicType{
|
typ = b.di.CreateBasicType(llvm.DIBasicType{
|
||||||
|
|||||||
Reference in New Issue
Block a user